Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/liststaff.php
Назад
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheUmuahiasiteDiocese2016Byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php if (isset($_GET['tab'])) { $dd=$_GET['tab']; if($dd=='ppt'){ $ss="Past Ordinaries"; } ?> <?php if (isset($_GET['deltab'])) { $deltab=$_GET['deltab']; $sql="delete from staff where sn = $deltab"; $result=mysql_query($sql,$csn) or die(mysql_error()); } $query_dio = "SELECT * FROM staff where category='".$dd."' order by sn, namer, position"; $dio = mysql_query($query_dio, $csn) or die(mysql_error()); $row_dio = mysql_fetch_assoc($dio); $totalRows_dio = mysql_num_rows($dio); ?> <!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"> <head> <?php include("head.php"); ?> <?php include("textare.php"); ?> </head> <body> <?php include("top.php"); ?> <?php include("titlebar.php"); ?> <?php include("mast.php"); ?> <?php include("navbar.php"); ?> <?php include("contenttop.php"); ?> <?php include("sidebar.php"); ?> <?php include("mainbartop.php"); ?> <!--Content Goes here--> <div class="headingbiggest"><?php echo($ss); ?>…</div> <form id="form1" name="form1" method="post" action="dadmin.php" enctype="multipart/form-data"> <table width="100%" cellpadding="1" cellspacing="2"> <tr valign="top"> <td style="font-weight:bold; text-align:center">Name</td> <td align="left" ><input name="namer" type="text" size="70" required="required" /></td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:center">Designation</td> <td align="left" ><input name="position" type="text" size="70" required="required" /></td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:center">Profile</td> <td align="left" ><textarea name="contenter" cols="65" rows="20"></textarea></td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:center">Photo</td> <td align="left" ><input type="file" name="uploader" size="65" /></td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:center">Coat of Arms</td> <td align="left" ><input type="file" name="uploader1" size="65" /></td> </tr> <tr valign="top"> <td style="text-align:right; font-size:10px;" colspan="2"><a href="dadmin.php">Cancel</a> <input name="addstaff" type="submit" style="font-size:12px;" id="addstaff" value=" Add Member " /> <input name="category" type="hidden" value="<?php echo($dd); ?>" /> </td> </tr> </table> </form> <hr /> <p style="color:#006600"><b>Current <?php echo($ss); ?></b></p> <?php if ($totalRows_dio>0) { ?> <table width="90%"> <?php do { ?><tr valign="top"> <td style="border-bottom:1px solid #999999;"><?php echo $row_dio['namer']; ?></td> <td style="border-bottom:1px solid #999999;"><?php echo $row_dio['position']; ?></td> <td style="border-bottom:1px solid #999999;"><a href="editstaff.php?tab=<?php echo $row_dio['sn']; ?>">Edit</a> | <a href="liststaff.php?deltab=<?php echo $row_dio['sn']; ?>&tab=<?php echo($dd); ?>">Delete</a> </td></tr> <?php } while ($row_dio = mysql_fetch_assoc($dio)); ?> </table> <?php } else { echo ("None Added Yet!"); } ?> <p><a href="dadmin.php">Back to Admin Page</a></p> <!--Content Ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html> <?php } else { include("dadmin.php"); }?> <?php } else { include("ddadmin.php"); }?>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка