| Current Path : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/CP/ |
Windows NT SG2NWVPWEB022 10.0 build 17763 (Windows Server 2016) i586 |
| Current File : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/CP/CPMasterPublication.php |
<?php
require_once('CPAuth.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"><!-- InstanceBegin template="/Templates/CPMasterPage.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>City Managers' Association Madhya Pradesh - Publications</title>
<!-- InstanceEndEditable -->
<link href="CP.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
-->
</style>
<!-- InstanceEndEditable -->
</head>
<body bgcolor="#999999">
<div align="center">
<table border="0" cellpadding="0px" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#2D8FC0" style="padding:5px; border:double"" colspan="3">
<div class="BannerStyle">
<div class="BannerStyle">City Managers' Association, Madhya Pradesh</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#2D8FC0" width="33%" style="border:double">
<div style="text-align: left;">
<?php echo "Welcome : " . $_SESSION['SESS_FIRST_NAME'] . " " . $_SESSION['SESS_LAST_NAME'];?>
</div>
</td>
<td bgcolor="#2D8FC0" width="33%" style="border:double">
<div style="text-align: center;">
<?php echo "Today : " . date("l, d-M-Y"); ?>
</div>
</td>
<td bgcolor="#2D8FC0" width="33%" style="border:double">
<div style="text-align: right;">
<a href="CPLogout.php">Logout </a>
</div>
</td>
</tr>
<tr>
<td bgcolor="#999999" height="10px" colspan="3">
</td>
</tr>
<tr>
<td align="center" bgcolor="#2D8FC0" colspan="3" style="border:double">
<table border="0" cellpadding="0" cellspacing="0" style="padding-bottom:3px">
<tr>
<td>
<a href="CPHome.php">Home </a> | </td>
<td>
<a href="CPMasterProject.php"> Projects </a> | </td>
<td>
<a href="CPMasterPublication.php"> Publications </a> | </td>
<td>
<a href="CPMasterTender.php"> Tenders </a> | </td>
<td>
<a href="CPMasterRecruitment.php"> Recruitments </a> | </td>
<td>
<a href="CPMasterNews.php"> News </a> | </td>
<td>
<a href="CPMasterDownload.php"> Download </a> | </td>
<td>
<a href="CPMasterWhatsNew.php"> What's New </a> | </td>
<td>
<a href="CPMasterMembership.php"> Membership </a> | </td>
<td>
<a href="CPMasterTeamMember.php"> Team </a> | </td>
<td>
<a href="CPContactUs.php"> Contact Us </a> | </td>
<td>
<a href="CPMasterPhotoGallery.php"> Gallery</a> | </td>
<td>
<a href="CPFeedbackView.php"> Feedback</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#999999" height="10px" colspan="3">
</td>
</tr>
<tr>
<td align="center" bgcolor="#2D8FC0" colspan="3" style="border:double">
<!-- InstanceBeginEditable name="CPMasterPageEdit" -->
<div style="text-align: center;">
<table width="100%" cellpadding="5px" cellspacing="10px" >
<tr>
<td colspan="2" class="StyleTableHeader" style="background-color:#FFFFFF;">
Publications
</td>
</tr>
<tr>
<td valign="top"width="25%" style="background-color:#FFFFFF">
<?php
require_once('CPConfig.php');
$link = mysql_connect($hostname, $username, $password) ;
$db= mysql_select_db($dbname);
$ZeroRecord = 'No';
$page_name="CPMasterPublication.php";
@$column_name='PublicationID Desc';
if (empty($_GET['start']))
{
$start = 0;
}
else
{
$start = $_GET['start'];
}
if (isset($_GET['PublicationID']))
{
$PublicationID = $_GET['PublicationID'];
}
else
{
$PublicationID = '-1';
}
if (isset($_GET['mMode']))
{
$mMode = $_GET['mMode'];
}
else
{
$mMode = '';
}
$eu = ($start - 0);
$limit = 10;
$this1 = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;
$query2=" SELECT * FROM masterpublication ";
$result2=mysql_query($query2);
echo mysql_error();
$nume=mysql_num_rows($result2);
$bgcolor="#ffffff";
echo "<TABLE width=99% cellpadding=0 cellspacing=0 style='border:double'>";
$query=" SELECT * FROM masterpublication ";
if(isset($column_name) and strlen($column_name)>0){
$query = $query . " order by $column_name";
}
$query = $query. " limit $eu, $limit ";
$result=mysql_query($query);
if(mysql_num_rows($result) == 0)
{
if ($eu == 0)
{
$ZeroRecord = 'Yes';
}
else
$eu = $eu - $limit;
$query="SELECT * FROM masterpublication order by $column_name limit $eu, $limit";
$result=mysql_query($query);
}
echo mysql_error();
while($noticia = mysql_fetch_array($result))
{
if($bgcolor=='#f1f1f1')
{
$bgcolor='#ffffff';
}
else
{
$bgcolor='#f1f1f1';
}
if ($PublicationID=='-1')
{
echo "<tr><td bgcolor=$bgcolor class='StyleSelectedCell'>";
}
else if ($PublicationID==$noticia['PublicationID'])
{
echo "<tr><td bgcolor=$bgcolor class='StyleSelectedCell'>";
}
else
{
echo "<td valign='top' bgcolor=$bgcolor>";
}
echo "<a href='../CP/CPMasterPublication.php?start=$eu&PublicationID=$noticia[PublicationID]'>$noticia[PName]</a></td></tr>";
if ($PublicationID=='-1')
{
$PublicationID = $noticia['PublicationID'];
}
}
echo "</table>";
echo "<table align = 'center' width='99%' style='background-color:#333333'><tr><td align='left' width='20%'>";
if($back >=0) {
print "<a href='$page_name?start=$back' class='aPage'>PREV</a>";
}
echo "</td><td align=center width='58%'>";
$i=0;
$l=1;
for($i=0;$i < $nume;$i=$i+$limit){
if($i <> $eu){
echo " <a href='$page_name?start=$i' class='aPage'>$l</a> ";
}
else { echo "<font class='FontPageSelected'>$l</font>";}
$l=$l+1;
}
echo "</td><td align='right' width='20%'>";
if($this1 < $nume) {
print "<a href='$page_name?start=$next' class='aPage'>NEXT</a>";}
echo "</td></tr></table>";
?>
</td>
<td valign="top" width="75%" style="background-color:#FFFFFF">
<form id="FrmPublication" name="FrmPublication" method="post" action="CPMasterPublication-Exec.php<?php echo "?start=$eu&PublicationID=$PublicationID&mMode=$mMode"; ?> " enctype="multipart/form-data">
<?php
$qry="SELECT * FROM masterpublication WHERE PublicationID='$PublicationID'";
$result=mysql_query($qry);
if($result)
{
if(mysql_num_rows($result) == 1)
{
$member = mysql_fetch_assoc($result);
}
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="text-align:center;">
<tbody>
<tr>
<td class="StyleTableBodyRight">
Name of Publication :
</td>
<td class="StyleTableBodyLeft">
<?php
echo "<input type='text' name='TxtPName' id='TxtPName' size='70' tabindex='300' ";
if (isset($_GET['mError']))
{
echo "Value='" . $_SESSION['mPName'] . "' />";
echo "<font color='#FF0000'> * " . $_GET['mError'] . "</font>";
}
else
{
if ($mMode == "Add")
{
echo "Value=''/>";
}
else if ($mMode == "Modify")
{
echo "Value='" . $member['PName'] . "' />";
}
else
{
if ($ZeroRecord == 'Yes')
{
echo "Value='' disabled = 'true'/>";
}
else
{
echo "Value='" . $member['PName'] . "' disabled='true' />";
}
}
}
?>
</td>
</tr>
<tr>
<td class="StyleTableBodyRight">
Description :
</td>
<td class="StyleTableBodyLeft">
<?php
echo "<input type='text' name='TxtPDescription' id='TxtPDescription' size='70' tabindex='301' ";
if (isset($_GET['mError']))
{
echo "Value='" . $_SESSION['mPDescription'] . "' />";
}
else
{
if ($mMode == "Add")
{
echo "Value=''/>";
}
else if ($mMode == "Modify")
{
echo "Value='" . $member['PDescription'] . "' />";
}
else
{
if ($ZeroRecord == 'Yes')
{
echo "Value='' disabled = 'true'/>";
}
else
{
echo "Value='" . $member['PDescription'] . "' disabled='true' />";
}
}
}
?>
</td>
</tr>
<tr>
<td class="StyleTableBodyRight">
Remarks :
</td>
<td class="StyleTableBodyLeft">
<?php
echo "<input type='text' name='TxtPRemarks' id='TxtPRemarks' size='70' tabindex='302' ";
if (isset($_GET['mError']))
{
echo "Value='" . $_SESSION['mPRemarks'] . "' />";
}
else
{
if ($mMode == "Add")
{
echo "Value=''/>";
}
else if ($mMode == "Modify")
{
echo "Value='" . $member['PRemarks'] . "' />";
}
else
{
if ($ZeroRecord == 'Yes')
{
echo "Value='' disabled = 'true'/>";
}
else
{
echo "Value='" . $member['PRemarks'] . "' disabled = 'true' />";
}
}
}
?>
</td>
</tr>
<tr>
<td class="StyleTableBodyRight">
Upload Image :
</td>
<td class="StyleTableBodyLeft">
<!-- Name of input element determines name in $_FILES array -->
<input name="PImagePath" type="file" size="57" tabindex="303"
<?php
if ($mMode == "Add")
{
}
else if ($mMode == "Modify")
{
}
else
{
echo "disabled='true'";
}
?> />
<?php
if ($ZeroRecord == 'Yes')
{
}
else
{
if ($mMode != "Add") echo "<br />$member[PImageName]";
}
?>
</td>
</tr>
<tr>
<td class="StyleTableBodyRight">
Upload Document :
</td>
<td class="StyleTableBodyLeft">
<!-- Name of input element determines name in $_FILES array -->
<input name="PDocumentPath" type="file" size="57" tabindex="304"
<?php
if ($mMode == "Add")
{
}
else if ($mMode == "Modify")
{
}
else
{
echo "disabled='true'";
}
?> />
<?php
if ($ZeroRecord == 'Yes')
{
}
else
{
if ($mMode != "Add") echo "<br />$member[PDocumentName]";
}
?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<INPUT type="submit" value="Add" name="BtnAdd" tabindex="310" class="button-TM"
<?php
if ($mMode == "Add")
{
echo "disabled = 'true' ";
}
else if ($mMode == "Modify")
{
echo "disabled = 'true' ";
}
?> />
<INPUT type="submit" value="Modify" name="BtnModify" tabindex="311" class="button-TM"
<?php
if ($mMode == "Add")
{
echo "disabled = 'true' ";
}
else if ($mMode == "Modify")
{
echo "disabled = 'true' ";
}
?> />
<INPUT type="submit" value="Save" name="BtnSave" tabindex="312" class="button-TM"
<?php
if ($mMode == "Add")
{
}
else if ($mMode == "Modify")
{
}
else
{
echo "disabled = 'true' ";
}
?> />
<INPUT type="submit" value="Cancel" name="BtnCancel" tabindex="313" class="button-TM"
<?php
if ($mMode == "Add")
{
}
else if ($mMode == "Modify")
{
}
else
{
echo "disabled = 'true' ";
}
?> />
<INPUT type="submit" value="Delete" name="BtnDelete" tabindex="314" class="button-TM"
<?php
if ($mMode == "Add")
{
echo "disabled = 'true' ";
}
else if ($mMode == "Modify")
{
echo "disabled = 'true' ";
}
?> />
<INPUT type="submit" value="Clear" name="BtnClear" tabindex="315" class="button-TM"
<?php
if ($mMode == "Add")
{
}
else if ($mMode == "Modify")
{
}
else
{
echo "disabled = 'true' ";
}
?> />
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</table>
</div>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td bgcolor="#999999" height="10px" colspan="3">
</td>
</tr>
<tr>
<td align="center" bgcolor="#2D8FC0" colspan="3" style="border:double">
<span>©2009 City Managers' Association, Madhya Pradesh</span> </td>
</tr>
</tbody></table>
</div>
</body>
<!-- InstanceEnd --></html>