From: Daniel D. <dd...@us...> - 2002-04-15 01:23:52
|
Update of /cvsroot/pn-modules/modules_development/PN_Downloads/html/modules/downloads In directory usw-pr-cvs1:/tmp/cvs-serv4567/PN_Downloads/html/modules/downloads Modified Files: admin.php Log Message: Added vonparser's item list box. Index: admin.php =================================================================== RCS file: /cvsroot/pn-modules/modules_development/PN_Downloads/html/modules/downloads/admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin.php 9 Apr 2002 15:48:46 -0000 1.2 --- admin.php 15 Apr 2002 01:23:48 -0000 1.3 *************** *** 269,287 **** // Modify Downloads ! $result = $dbconn->Execute("SELECT COUNT(1) ! FROM $pntable[downloads_downloads]"); ! list($numrows) = $result->fields; ! if ($numrows>0) { ! OpenTable(); ! echo "<form method=\"post\" action=\"admin.php\">" ! ."<font class=\"pn-title\"><b>"._MODDOWNLOAD."</b></font><br /><br />" ! .""._DOWNLOADID.": <input type=\"text\" name=\"lid\" size=\"12\" maxlength=\"11\"> " ! ."<input type=\"hidden\" name=\"module\" value=\"".$GLOBALS['module']."\">" ! ."<input type=\"hidden\" name=\"op\" value=\"DownloadsModDownload\">" ! ."<input type=\"hidden\" name=\"authid\" value=\"" . pnSecGenAuthKey() . "\">" ! ."<input type=\"submit\" value=\""._MODIFY."\">" ! ."</form>"; ! CloseTable(); ! } // Access Download Settings --- 269,301 ---- // Modify Downloads ! $column = &$pntable['downloads_downloads_column']; ! $result = $dbconn->Execute("SELECT $column[lid], $column[title] ! FROM $pntable[downloads_downloads] ! ORDER BY $column[lid]"); ! if (!$result->EOF) ! { ! OpenTable(); ! echo "<form method=\"post\" action=\"admin.php\"><font class=\"pn-title\" size=\"3\"><b>"._MODDOWNLOAD."</b><br><br>"._DOWNLOADID.": "; ! echo "<select name=\"lid\">"; ! ! $column = &$pntable['downloads_downloads_column']; ! $result2 = $dbconn->Execute("SELECT $column[lid], $column[title] ! FROM $pntable[downloads_downloads] ! ORDER BY $column[lid]"); ! ! while(list($dllid, $dltitle) = $result2->fields) ! { ! echo "<option value=\"$dllid\">$dllid - $dltitle</option>"; ! $result2->MoveNext(); ! } ! ! echo "</select>"; ! echo "<input type=\"hidden\" name=\"module\" value=\"".$GLOBALS['module']."\">" ! ."<input type=\"hidden\" name=\"op\" value=\"DownloadsModDownload\">" ! ."<input type=\"submit\" value=\""._MODIFY."\">"; ! ! CloseTable(); ! } ! // Access Download Settings *************** *** 1714,1716 **** echo "Access Denied"; } ! ?> \ No newline at end of file --- 1728,1730 ---- echo "Access Denied"; } ! ?> |