Location: PHPKode > scripts > PHP Classified script made easy > php-classified-script-made-easy/Files/manager/blocks.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?PHP include("../inc/meta.php"); ?>
<title><?PHP include("../inc/title.php"); ?></title>
<link href="../inc/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function goto(url)
<style type="text/css">
.style22 {font-size: 24px}
.style25 {
	font-size: 36px;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #2B557B;
.style28 {font-size: 15px}
.style29 {color: #FF0000}
.style32 {
	font-size: 12px;
	color: #000000;
.style37 {font-size: 13px}
.style38 {color: #000000}
.style52 {color: #2B557B}
.style53 {font-size: 18px}
.style54 {
	font-size: 24px;
	color: #000000;
	font-weight: bold;
.style56 {color: #000000; font-weight: bold; }

<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="530" height="70" valign="bottom"><a href="index.php"><img src="../images/manager.gif" alt="" width="450" height="62" border="0" /></a></td>
    <td width="370" class="head"><div align="right" class="style1 style22"><a href="admin.php" class="style10">Home</a> | <a href="logout.php" class="style10">Logout</a> </div></td>
    <td height="136" valign="middle" class="main-content"><?PHP
$queryno  = "SELECT * FROM classifieds WHERE authorized = '0'";
$queryall  = "SELECT * FROM classifieds";
$resultno = mysql_query($queryno);
$resultall = mysql_query($queryall);
$unapproved = mysql_num_rows($resultno);
$total = mysql_num_rows($resultall);

      <div align="center" class="style34"><span class="style38">Welcome To The Admin Panel, <?PHP echo $curUser; ?></span><br />
      <span class="style28">There Are Currently: <span class="style29"><?PHP echo $total; ?></span> Ads Total, <span class="style29"><?PHP echo $unapproved; ?></span> Awaiting Approval</span>.<br />
    <span class="style32">You May View The Ads Awaiting Approval Below, Or Use The Control Panel Options.      </span></div>
      <div align="left" class="style34 style38">Control Panel Options:</div>    </td>
    <td valign="middle" class="main-content"><div align="center" class="style25">Classifieds<br />
      Administration <br />
    </div>    </td>
    <td height="90" colspan="2" valign="top" class="main-content"><table width="100%" border="0" cellspacing="5" cellpadding="0">
        <td height="41" bgcolor="#FFFFFF" style="cursor:pointer;" onclick="goto('admin.php');"><div align="center"><strong>Approve Listings </strong><br />
                <span class="style37">Approve Classified Ads</span> </div></td>
        <td bgcolor="#FFFFFF" style="cursor:pointer;" onclick="goto('all-edit.php');"><div align="center"><strong>Edit Listings</strong><br />
                <span class="style37">Edit All  Classified Listings</span></div></td>
        <td bgcolor="#FFFFFF" style="cursor:pointer;" onclick="goto('categories.php');"><div align="center"><strong>Edit Categories </strong><br />
                <span class="style37">Edit Classified Categories </span></div></td>
        <td bgcolor="#FFFFFF" style="cursor:pointer;" onclick="goto('blocks.php');"><div align="center"><strong>Advertising Blocks</strong><br />
                <span class="style37">Edit Advert Areas Content</span> </div></td>
        <td bgcolor="#FFFFFF" style="cursor:pointer;" onclick="goto('settings.php');"><div align="center"><strong>Settings</strong><span class="style37"><br />
          Manage Site Settings</span> </div></td>
    <td height="34" colspan="2" valign="top" class="main-content"><table width="100%" height="75" border="0" cellpadding="0" cellspacing="0">
          <td valign="top" class="left-content"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <td valign="bottom"><span class="style34">Website Settings</span></td>
                <td width="180" valign="bottom" style="padding-right:5px;"><div align="right"><img src="images/sort.gif" width="80" height="24" /></div></td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #D8D8D8;" class="listings">
                <td height="30" colspan="2" valign="middle" bgcolor="#E2ECF5" style="padding-left:10px;" class="pages">
                              <tr> <td height="30" colspan="2" valign="middle" bgcolor="#EEF3F9" style="padding-left:10px;" class="pages">
								 $query  = "SELECT * FROM settings WHERE id = '1' limit 1";
 $result = mysql_query($query);
 while($row = mysql_fetch_array($result, MYSQL_ASSOC))
							  $block1 = $row['block1'];
							  $block2 = $row['block2'];
							  $block3 = $row['block3'];
							  $block4 = $row['block4'];
							  $block5 = $row['block5'];
							  $block6 = $row['block6'];
 							  $block7 = $row['block7'];

							  $submit = $_POST['submit'];
							  $block1 = htmlentities($_POST['block1'], ENT_QUOTES);
							  $block2 = htmlentities($_POST['block2'], ENT_QUOTES);
							  $block3 = htmlentities($_POST['block3'], ENT_QUOTES);
							  $block4 = htmlentities($_POST['block4'], ENT_QUOTES);
							  $block5 = htmlentities($_POST['block5'], ENT_QUOTES);
							  $block6 = htmlentities($_POST['block6'], ENT_QUOTES);
 							  $block7 = htmlentities($_POST['block7'], ENT_QUOTES);
							  $query  = "UPDATE settings SET block1 = '".$block1."', block2 = '".$block2."', block3 = '".$block3."', block4 = '".$block4."', block5 = '".$block5."', block6 = '".$block6."', block7 = '".$block7."' WHERE id = '1'";
							  $result = mysql_query($query) or die(mysql_error());
							  echo " <div align='center' style='padding:20px;' class='style34'>Site Settings Updated Successfully!</div> </td>";
							  } else {
							  ?><form action="blocks.php" method="post">
<p class="style52"><span class="style56">Ad Block Information</span>: <br />
  Here, you may adjust the content in the Advertisement blocks located around the classifieds site. Please keep in mind any regulations of your ad provider, such as Google allows only 3 content ads per page, along with 3 text links ads... so to best utilize these ad placements, please see the information beneath the description for each one. If you are renting your own ads, feel free to make graphics and links, and sell the ad space to whomever you'd like. Accepting payments is on you, as this script is not designed to do so. </p>
<span class="style54">Raw HTML Accepted In Boxes Below</span> <br />
<table width="100%" border="0" cellspacing="4" cellpadding="0">
                                    <td width="37%"><span class="style23 style52">Ad Block 1 <br />
                                      <span class="style28"><span class="style53">Right Side, All Pages </span><br />
                                      Suggested Size Approx. 250w x 250h <br />
                                      Content Ad </span></span></td>
                                    <td width="63%"><textarea name="block1" cols="50" rows="7"><?PHP echo $block1; ?></textarea></td>
                                    <td><p class="style23 style52">Ad Block 2 <br />
                                    Right Side, All Pages <br />
                                    <span class="style28">Suggested Size Approx. 250w x 250h<br />
                                    Content Ad </span></p>
                                    <td><textarea name="block2" cols="50" rows="7"><?PHP echo $block2; ?></textarea></td>
                                    <td><span class="style23 style52">Ad Block 3 <br />
                                    Buy Page/Search, In Header <br />
                                      <span class="style28">Suggested Size Approx. 180w x 150h<br />
                                        Content Ad
</span><br />
                                    <td><textarea name="block3" cols="50" rows="7"><?PHP echo $block3; ?></textarea></td>
                                    <td><span class="style23 style52">Ad Block 4 <br />
                                    Sell Page, In Header <br />
                                      <span class="style28">Suggested Size Approx. 200w x 200h<br />
                                    Content Ad </span><br />
                                    <td><textarea name="block4" cols="50" rows="7"><?PHP echo $block4; ?></textarea></td>
                                    <td><span class="style23 style52">Ad Block 5 <br />
                                    Ad Details Page, Under Photo <br />
                                      <span class="style28">Suggested Size Approx. 200w x 90h <br />
                                    Content Ad, Verticle </span></span></td>
                                    <td><textarea name="block5" cols="50" rows="7"><?PHP echo $block5; ?></textarea></td>
                                    <td><span class="style23 style52">Ad Block 6 <br />
                                    Ad Details Page, Above Listing<br />
                                    <span class="style28">Suggested Size Approx.468w x 15h<br />
                                    Content Ad, Horizontal </span></span></td>
                                    <td><textarea name="block6" cols="50" rows="7"><?PHP echo $block6; ?></textarea></td>
                                    <td><span class="style23 style52">Ad Block 7 <br />
                                    Ad Details Page, Below Listing <br />
                                      <span class="style28">Suggested Size Approx. 468w x 15h<br />
                                        Content Ad, Horizontal
                                    <td><textarea name="block7" cols="50" rows="7"><?PHP echo $block7; ?></textarea></td>
                                    <td><input type="submit" name="submit" value="Save Changes" /></td>
</form><?PHP } ?>
                <td height="23" bgcolor="#E2ECF5" colspan="3"><div align="center">
                  <table width="185" border="0" align="right" cellpadding="0" cellspacing="3">
                      <td colspan="2">&nbsp;</td>
            <br />
          <br /></td>
    </table>    </td></tr>
    <td height="93" colspan="2" valign="top" class="footer">
    <div style="float:right;"><a href="#"><img src="images/backtotop.png" width="59" height="18" border="0" /></a></div>
    <div align="left" class="style23">
      <p><span class="style23"><a href="../index.php" class="style49">Home</a> <span class="style44">|</span> <a href="../buy.php" class="style49">Buy</a> <span class="style44">|</span><a href="sell.php" class="style49"> Sell </a><span class="style44">| </span><span class="style49"><a href="../search.php" class="style49">Search</a> <span class="style44">|</span> <a href="../help.php" class="style49">Help</a></span></span><span class="style51"><span class="style44"> |</span></span></p>
      <p class="style24">All Rights Reserved RCoders Development <span class="style22">|</span></p>
Return current item: PHP Classified script made easy