Файловый менеджер - Редактировать - /home/umudio/public_html/repo/listphotoseveral.php.tar
Назад
home/umudio/public_html/OLD/listphotoseveral.php 0000644 00000006003 14773626677 0016066 0 ustar 00 <?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheUmuahiasiteDiocese2016Byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php $query_dio5 = "SELECT * FROM photocategory where archived='No' order by titler asc"; $dio5 = mysql_query($query_dio5, $csn) or die(mysql_error()); $row_dio5 = mysql_fetch_assoc($dio5); $totalRows_dio5 = mysql_num_rows($dio5); $query_dio3 = "SELECT * FROM photocategory where archived='No' order by titler asc"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); ?> <!doctype html> <html> <head><?php include("head.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 for this page begins here--> <div class="headingbiggest">Photo Gallery…</div> <p class="headingstyled"><b>Add New Photo</b></p> <form id="form1" name="form1" method="post" action="uploadpicseveral.php" enctype="multipart/form-data"> <table width="100%"> <tr valign="top"> <td style="font-weight:bold; text-align:right">Category</td> <td align="left" > <select name="category" id="category"> <option value="0" selected="selected" >No Category</option> <?php if ($totalRows_dio5>0) { ?> <?php do { ?> <option value="<?php echo ($row_dio5['sn']); ?>" ><?php echo ($row_dio5['titler']); ?></option> <?php } while ($row_dio5 = mysql_fetch_assoc($dio5)); ?> <?php } ?> </select> <div> </div> </td> </tr> <?php for($i=1;$i<=16;$i++){ ?> <tr valign="top"> <td style="font-weight:bold;"> Photo<?php echo $i; ?>: <input type="file" name="uploader<?php echo $i; ?>" style="float:right;" /> </td> <td align="left" ><b>Caption<?php echo $i; ?>: </b><input name="titler<?php echo $i; ?>" type="text" size="20" /></td> </tr> <?php } ?> <tr valign="top"> <td style="text-align:right;" colspan="2"><a href="dadmin.php">Cancel</a> <input name="addphoto" type="submit" style="font-size:12px;" id="addphoto" value=" Add Photo " /> </td> </tr> </table> </form> <hr /> <p><a href="dadmin.php">Back to Admin Page</a></p> <!--Content for this page ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html> <?php } else { include("ddadmin.php"); }?>