Location: PHPKode > scripts > PHP Reciprocial Links > php-reciprocial-links/admin/partners.php
<?
function main()
{


?> 
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<?
if (!isset($_REQUEST["list"]) || $_REQUEST["list"]<>"no" )
{

?>  <tr> 
      
    <td><font size="2" face="Arial, Helvetica, sans-serif"><strong> Partner Sites</strong></font></td>
    </tr>
    <tr> 
      
    <td><font color="#0000FF" size="2" face="Arial, Helvetica, sans-serif"><em>When your link 
      partners will add their site to your site they will be prompted to add there 
      link to these partner sites also. </em></font></td>
    </tr>
    <?
	$cnt=0;
	$sql="Select * from reciprocal_partnersites ";
	
		 
  	$rs_query=mysql_query($sql );
	while ($rs=mysql_fetch_array($rs_query))
	{
	$cnt++;
?>
    <tr> 
      <td>&nbsp;</td>
    </tr>
    <tr> 
      
    <td bgcolor="#f5f5f5"><strong><font color="#0066CC" size="2" face="Arial, Helvetica, sans-serif"><?php echo $cnt ;?>. 
      <?php echo $rs["title"] ;?> &nbsp;</font></strong><font color="#0066CC" size="2" face="Arial, Helvetica, sans-serif"><font color="#333333"> 
      [<a href="deletepartner.php?id=<?php echo $rs["id"] ;?>">Delete</a>] 
      </font> </font></td>
    </tr>
    <tr> 
      <td><font size="2" face="Arial, Helvetica, sans-serif">Link: <a href="http://<?php echo $rs["link"] ;?>" target="_blank"><?php echo $rs["link"] ;?></a></font></td>
    </tr>
        <?
}
?>
<?

} //Show the partner list?

?>
  <tr> 
      
    <td><script language="JavaScript">
<!--
function Validate()
{

if (form123.title.value==''   )
{
	alert("Title must be specified");
	document.form123.title.focus();
	return (false);
}

if (form123.link.value==''   )
{
	alert("Add Page Url must be specified");
	document.form123.link.focus();
	return (false);
}


return(true);
}

//-->
</script></td>
    </tr>
  <tr> 
      <td><form action="insertpartner.php" method="post" name="form123" id="form123" onsubmit="return Validate();">
        <div align="center"> <font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><A name="add" ></A>
          </font><br>
          <table width="100%" border="0" cellspacing="10" cellpadding="0">
            <tr> 
              <td height="25" colspan="2" bgcolor="#004080"><strong><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;Add 
                New Partner Site</font></strong></td>
            </tr>
            <tr>
              <td bgcolor="#f5f5f5"><b><font size="2" face="Arial, Helvetica, sans-serif">Title:</font></b></td>
              <td><input name="title" type="text" size="35" border="0"></td>
            </tr>
            <tr> 
              <td width="248" bgcolor="#f5f5f5"><b><font size="2" face="Arial, Helvetica, sans-serif">Partner 
                Site Page Url:</font></b></td>
              <td width="240"> <input name="link" type="text" size="35" border="0"></td>
            </tr>
            <tr> 
              <td colspan="2"><p>&nbsp;</p>
                </td>
            </tr>
            <tr> 
              <td colspan="2" background="images/dots.gif"></td>
            </tr>
            <tr> 
              <td colspan="2"> <div align="center"> 
                  <input type="submit" name="submitButtonName" value="Add Partner site" border="0">
                  <br>
                </div></td>
            </tr>
          </table>
        </div>
      </form></td>
    </tr>
  </table>
  <?
}  
include_once("template.php");

  ?>
Return current item: PHP Reciprocial Links