From: <go...@us...> - 2002-10-11 06:14:55
|
Update of /cvsroot/xoops/xoops-current/html/modules/mylinks/admin In directory usw-pr-cvs1:/tmp/cvs-serv5992/html/modules/mylinks/admin Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/mylinks/admin/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 11 Aug 2002 13:53:19 -0000 1.3 --- index.php 11 Oct 2002 06:14:22 -0000 1.4 *************** *** 54,68 **** } echo " - <a href=index.php?op=myLinksConfigAdmin>"._MD_GENERALSET."</a>"; ! echo "<br><br>"; echo " - <a href=index.php?op=linksConfigMenu>"._MD_ADDMODDELETE."</a>"; ! echo "<br><br>"; echo " - <a href=index.php?op=listNewLinks>"._MD_LINKSWAITING." ($totalnewlinks)</a>"; ! echo "<br><br>"; echo " - <a href=index.php?op=listBrokenLinks>"._MD_BROKENREPORTS." ($totalbrokenlinks)</a>"; ! echo "<br><br>"; echo " - <a href=index.php?op=listModReq>"._MD_MODREQUESTS." ($totalmodrequests)</a>"; $result=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_links")." where status>0"); list($numrows) = $xoopsDB->fetchRow($result); ! echo "<br><br><div align=\"center\">"; printf(_MD_THEREARE,$numrows); echo "</div>"; CloseTable(); --- 54,68 ---- } echo " - <a href=index.php?op=myLinksConfigAdmin>"._MD_GENERALSET."</a>"; ! echo "<br /><br />"; echo " - <a href=index.php?op=linksConfigMenu>"._MD_ADDMODDELETE."</a>"; ! echo "<br /><br />"; echo " - <a href=index.php?op=listNewLinks>"._MD_LINKSWAITING." ($totalnewlinks)</a>"; ! echo "<br /><br />"; echo " - <a href=index.php?op=listBrokenLinks>"._MD_BROKENREPORTS." ($totalbrokenlinks)</a>"; ! echo "<br /><br />"; echo " - <a href=index.php?op=listModReq>"._MD_MODREQUESTS." ($totalmodrequests)</a>"; $result=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_links")." where status>0"); list($numrows) = $xoopsDB->fetchRow($result); ! echo "<br /><br /><div align=\"center\">"; printf(_MD_THEREARE,$numrows); echo "</div>"; CloseTable(); *************** *** 77,81 **** xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_LINKSWAITING." ($numrows)</h4><br>"; if ($numrows>0) { while(list($lid, $cid, $title, $url, $email, $logourl, $submitterid) = $xoopsDB->fetchRow($result)) { --- 77,81 ---- xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_LINKSWAITING." ($numrows)</h4><br />"; if ($numrows>0) { while(list($lid, $cid, $title, $url, $email, $logourl, $submitterid) = $xoopsDB->fetchRow($result)) { *************** *** 118,127 **** echo "</td></tr>\n"; echo "</table>\n"; ! echo "<br><input type=\"hidden\" name=\"op\" value=\"approve\"></input>"; echo "<input type=\"hidden\" name=\"lid\" value=\"$lid\"></input>"; echo "<input type=\"submit\" value=\""._MD_APPROVE."\"></form>\n"; echo myTextForm("index.php?op=delNewLink&lid=$lid",_MD_DELETE); ! echo "<br><br>"; } }else{ --- 118,127 ---- echo "</td></tr>\n"; echo "</table>\n"; ! echo "<br /><input type=\"hidden\" name=\"op\" value=\"approve\"></input>"; echo "<input type=\"hidden\" name=\"lid\" value=\"$lid\"></input>"; echo "<input type=\"submit\" value=\""._MD_APPROVE."\"></form>\n"; echo myTextForm("index.php?op=delNewLink&lid=$lid",_MD_DELETE); ! echo "<br /><br />"; } }else{ *************** *** 139,149 **** OpenTable(); echo "<form method=post action=index.php>\n"; ! echo "<h4>"._MD_ADDMAIN."</h4><br>"._MD_TITLEC."<input type=text name=title size=30 maxlength=50><br>"; ! echo ""._MD_IMGURL."<br><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\" value=\"http://\"><br><br>"; echo "<input type=hidden name=cid value=0>\n"; echo "<input type=hidden name=op value=addCat>"; ! echo "<input type=submit value="._MD_ADD."><br></form>"; CloseTable(); ! echo "<br>"; // Add a New Sub-Category $result=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_cat").""); --- 139,149 ---- OpenTable(); echo "<form method=post action=index.php>\n"; ! echo "<h4>"._MD_ADDMAIN."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50><br />"; ! echo ""._MD_IMGURL."<br /><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\" value=\"http://\"><br /><br />"; echo "<input type=hidden name=cid value=0>\n"; echo "<input type=hidden name=op value=addCat>"; ! echo "<input type=submit value="._MD_ADD."><br /></form>"; CloseTable(); ! echo "<br />"; // Add a New Sub-Category $result=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_cat").""); *************** *** 154,167 **** echo "<h4>"._MD_ADDSUB."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50> "._MD_IN." "; $mytree->makeMySelBox("title", "title"); ! # echo "<br>"._MD_IMGURL."<br><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\">\n"; ! echo "<input type=hidden name=op value=addCat><br><br>"; ! echo "<input type=submit value="._MD_ADD."><br></form>"; CloseTable(); ! echo "<br>"; // If there is a category, add a New Link OpenTable(); echo "<form method=post action=index.php>\n"; ! echo "<h4>"._MD_ADDNEWLINK."</h4><br>\n"; echo "<table width=\"80%\"><tr>\n"; echo "<td align=\"right\">"._MD_SITETITLE."</td><td>"; --- 154,167 ---- echo "<h4>"._MD_ADDSUB."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50> "._MD_IN." "; $mytree->makeMySelBox("title", "title"); ! # echo "<br />"._MD_IMGURL."<br /><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\">\n"; ! echo "<input type=hidden name=op value=addCat><br /><br />"; ! echo "<input type=submit value="._MD_ADD."><br /></form>"; CloseTable(); ! echo "<br />"; // If there is a category, add a New Link OpenTable(); echo "<form method=post action=index.php>\n"; ! echo "<h4>"._MD_ADDNEWLINK."</h4><br />\n"; echo "<table width=\"80%\"><tr>\n"; echo "<td align=\"right\">"._MD_SITETITLE."</td><td>"; *************** *** 184,193 **** printf(_MD_SHOTMUST,$shotdir); echo "</td></tr>\n"; ! echo "</table>\n<br>"; echo "<input type=\"hidden\" name=\"op\" value=\"addLink\"></input>"; echo "<input type=\"submit\" class=\"button\" value=\""._MD_ADD."\"></input>\n"; echo "</form>"; CloseTable(); ! echo "<br>"; // Modify Category --- 184,193 ---- printf(_MD_SHOTMUST,$shotdir); echo "</td></tr>\n"; ! echo "</table>\n<br />"; echo "<input type=\"hidden\" name=\"op\" value=\"addLink\"></input>"; echo "<input type=\"submit\" class=\"button\" value=\""._MD_ADD."\"></input>\n"; echo "</form>"; CloseTable(); ! echo "<br />"; // Modify Category *************** *** 195,207 **** echo " </center><form method=post action=index.php> ! <h4>"._MD_MODCAT."</h4><br>"; echo _MD_CATEGORYC; $mytree->makeMySelBox("title", "title"); ! echo "<br><br>\n"; echo "<input type=hidden name=op value=modCat>\n"; echo "<input type=submit value="._MD_MODIFY.">\n"; echo "</form>"; CloseTable(); ! echo "<br>"; } // Modify Link --- 195,207 ---- echo " </center><form method=post action=index.php> ! <h4>"._MD_MODCAT."</h4><br />"; echo _MD_CATEGORYC; $mytree->makeMySelBox("title", "title"); ! echo "<br /><br />\n"; echo "<input type=hidden name=op value=modCat>\n"; echo "<input type=submit value="._MD_MODIFY.">\n"; echo "</form>"; CloseTable(); ! echo "<br />"; } // Modify Link *************** *** 211,218 **** OpenTable(); echo "<form method=get action=\"index.php\">\n"; ! echo "<h4>"._MD_MODLINK."</h4><br>\n"; echo _MD_LINKID."<input type=text name=lid size=12 maxlength=11>\n"; echo "<input type=hidden name=fct value=mylinks>\n"; ! echo "<input type=hidden name=op value=modLink><br><br>\n"; echo "<input type=submit value="._MD_MODIFY."></form>\n"; CloseTable(); --- 211,218 ---- OpenTable(); echo "<form method=get action=\"index.php\">\n"; ! echo "<h4>"._MD_MODLINK."</h4><br />\n"; echo _MD_LINKID."<input type=text name=lid size=12 maxlength=11>\n"; echo "<input type=hidden name=fct value=mylinks>\n"; ! echo "<input type=hidden name=op value=modLink><br /><br />\n"; echo "<input type=submit value="._MD_MODIFY."></form>\n"; CloseTable(); *************** *** 227,231 **** OpenTable(); $result = $xoopsDB->query("select cid, title, url, email, logourl from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid") or $eh->show("0013"); ! echo "<h4>"._MD_MODLINK."</h4><br>"; list($cid, $title, $url, $email, $logourl) = $xoopsDB->fetchRow($result); $title = $myts->makeTboxData4Edit($title); --- 227,231 ---- OpenTable(); $result = $xoopsDB->query("select cid, title, url, email, logourl from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid") or $eh->show("0013"); ! echo "<h4>"._MD_MODLINK."</h4><br />"; list($cid, $title, $url, $email, $logourl) = $xoopsDB->fetchRow($result); $title = $myts->makeTboxData4Edit($title); *************** *** 254,258 **** echo "</td></tr>\n"; echo "</table>"; ! echo "<br><BR><input type=hidden name=lid value=$lid></input>\n"; echo "<input type=hidden name=op value=modLinkS><input type=submit value="._MD_MODIFY.">"; // echo " <input type=button value="._MD_DELETE." onclick=\"javascript:location='index.php?op=delLink&lid=".$lid."'\">"; --- 254,258 ---- echo "</td></tr>\n"; echo "</table>"; ! echo "<br /><br /><input type=hidden name=lid value=$lid></input>\n"; echo "<input type=hidden name=op value=modLinkS><input type=submit value="._MD_MODIFY.">"; // echo " <input type=button value="._MD_DELETE." onclick=\"javascript:location='index.php?op=delLink&lid=".$lid."'\">"; *************** *** 269,285 **** $result5=$xoopsDB->query("SELECT count(*) FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid"); list($totalvotes) = $xoopsDB->fetchRow($result5); ! echo "<table valign=top width=100%>\n"; echo "<tr><td colspan=7><b>"; printf(_MD_TOTALVOTES,$totalvotes); ! echo "</b><br><br></td></tr>\n"; // Show Registered Users Votes $result5=$xoopsDB->query("SELECT ratingid, ratinguser, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid AND ratinguser >0 ORDER BY ratingtimestamp DESC"); $votes = $xoopsDB->getRowsNum($result5); ! echo "<tr><td colspan=7><br><br><b>"; printf(_MD_USERTOTALVOTES,$votes); ! echo "</b><br><br></td></tr>\n"; echo "<tr><td><b>" ._MD_USER." </b></td><td><b>" ._MD_IP." </b></td><td><b>" ._MD_RATING." </b></td><td><b>" ._MD_USERAVG." </b></td><td><b>" ._MD_TOTALRATE." </b></td><td><b>" ._MD_DATE." </b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td></tr>\n"; if ($votes == 0){ ! echo "<tr><td align=\"center\" colspan=\"7\">" ._MD_NOREGVOTES."<br></td></tr>\n"; } $x=0; --- 269,285 ---- $result5=$xoopsDB->query("SELECT count(*) FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid"); list($totalvotes) = $xoopsDB->fetchRow($result5); ! echo "<table width='100%'>\n"; echo "<tr><td colspan=7><b>"; printf(_MD_TOTALVOTES,$totalvotes); ! echo "</b><br /><br /></td></tr>\n"; // Show Registered Users Votes $result5=$xoopsDB->query("SELECT ratingid, ratinguser, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid AND ratinguser >0 ORDER BY ratingtimestamp DESC"); $votes = $xoopsDB->getRowsNum($result5); ! echo "<tr><td colspan=7><br /><br /><b>"; printf(_MD_USERTOTALVOTES,$votes); ! echo "</b><br /><br /></td></tr>\n"; echo "<tr><td><b>" ._MD_USER." </b></td><td><b>" ._MD_IP." </b></td><td><b>" ._MD_RATING." </b></td><td><b>" ._MD_USERAVG." </b></td><td><b>" ._MD_TOTALRATE." </b></td><td><b>" ._MD_DATE." </b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td></tr>\n"; if ($votes == 0){ ! echo "<tr><td align=\"center\" colspan=\"7\">" ._MD_NOREGVOTES."<br /></td></tr>\n"; } $x=0; *************** *** 308,317 **** $result5=$xoopsDB->query("SELECT ratingid, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid AND ratinguser = 0 ORDER BY ratingtimestamp DESC"); $votes = $xoopsDB->getRowsNum($result5); ! echo "<tr><td colspan=7><b><br><br>"; printf(_MD_ANONTOTALVOTES,$votes); ! echo "</b><br><br></td></tr>\n"; ! echo "<tr><td colspan=2><b>" ._MD_IP." </b></td><td colspan=3><b>" ._MD_RATING." </b></td><td><b>" ._MD_DATE." </b></b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td><br></tr>"; if ($votes == 0) { ! echo "<tr><td colspan=\"7\" align=\"center\">" ._MD_NOUNREGVOTES."<br></td></tr>"; } $x=0; --- 308,317 ---- $result5=$xoopsDB->query("SELECT ratingid, rating, ratinghostname, ratingtimestamp FROM ".$xoopsDB->prefix("mylinks_votedata")." WHERE lid = $lid AND ratinguser = 0 ORDER BY ratingtimestamp DESC"); $votes = $xoopsDB->getRowsNum($result5); ! echo "<tr><td colspan=7><b><br /><br />"; printf(_MD_ANONTOTALVOTES,$votes); ! echo "</b><br /><br /></td></tr>\n"; ! echo "<tr><td colspan=2><b>" ._MD_IP." </b></td><td colspan=3><b>" ._MD_RATING." </b></td><td><b>" ._MD_DATE." </b></b></td><td align=\"center\"><b>" ._MD_DELETE."</b></td><br /></tr>"; if ($votes == 0) { ! echo "<tr><td colspan=\"7\" align=\"center\">" ._MD_NOUNREGVOTES."<br /></td></tr>"; } $x=0; *************** *** 327,331 **** } } ! echo "<tr><td colspan=\"6\"> <br></td></tr>\n"; echo "</table>\n"; CloseTable(); --- 327,331 ---- } } ! echo "<tr><td colspan=\"6\"> <br /></td></tr>\n"; echo "</table>\n"; CloseTable(); *************** *** 349,353 **** xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_BROKENREPORTS." ($totalbrokenlinks)</h4><br>"; if ($totalbrokenlinks==0) { --- 349,353 ---- xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_BROKENREPORTS." ($totalbrokenlinks)</h4><br />"; if ($totalbrokenlinks==0) { *************** *** 355,360 **** } else { echo "<center> ! "._MD_IGNOREDESC."<br> ! "._MD_DELETEDESC."</center><br><br><br>"; $colorswitch="dddddd"; echo "<table align=\"center\" width=\"90%\">"; --- 355,360 ---- } else { echo "<center> ! "._MD_IGNOREDESC."<br /> ! "._MD_DELETEDESC."</center><br /><br /><br />"; $colorswitch="dddddd"; echo "<table align=\"center\" width=\"90%\">"; *************** *** 432,436 **** xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_USERMODREQ." ($totalmodrequests)</h4><br>"; if($totalmodrequests>0){ echo "<table width=95%><tr><td>"; --- 432,436 ---- xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_USERMODREQ." ($totalmodrequests)</h4><br />"; if($totalmodrequests>0){ echo "<table width=95%><tr><td>"; *************** *** 469,473 **** <tr> <td valign=top width=45%><b>"._MD_ORIGINAL."</b></td> ! <td rowspan=14 valign=top align=left><small><br>"._MD_DESCRIPTIONC."<br>$origdescription</small></td> </tr> <tr><td valign=top width=45%><small>"._MD_SITETITLE."$origtitle</small></td></tr> --- 469,473 ---- <tr> <td valign=top width=45%><b>"._MD_ORIGINAL."</b></td> ! <td rowspan=14 valign=top align=left><small><br />"._MD_DESCRIPTIONC."<br />$origdescription</small></td> </tr> <tr><td valign=top width=45%><small>"._MD_SITETITLE."$origtitle</small></td></tr> *************** *** 486,490 **** <tr> <td valign=top width=45%><b>"._MD_PROPOSED."</b></td> ! <td rowspan=14 valign=top align=left><small><br>"._MD_DESCRIPTIONC."<br>$description</small></td> </tr> <tr><td valign=top width=45%><small>"._MD_SITETITLE."$title</small></td></tr> --- 486,490 ---- <tr> <td valign=top width=45%><b>"._MD_PROPOSED."</b></td> ! <td rowspan=14 valign=top align=left><small><br />"._MD_DESCRIPTIONC."<br />$description</small></td> </tr> <tr><td valign=top width=45%><small>"._MD_SITETITLE."$title</small></td></tr> *************** *** 519,523 **** echo "</td></tr></table>\n"; echo "</small></td></tr>\n"; ! echo "</table><br><br>"; } echo "</td></tr></table>"; --- 519,523 ---- echo "</td></tr></table>\n"; echo "</small></td></tr>\n"; ! echo "</table><br /><br />"; } echo "</td></tr></table>"; *************** *** 597,611 **** xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_MODCAT."</h4><br>"; $result=$xoopsDB->query("select pid, title, imgurl from ".$xoopsDB->prefix("mylinks_cat")." where cid=$cid"); list($pid,$title,$imgurl) = $xoopsDB->fetchRow($result); $title = $myts->makeTboxData4Edit($title); $imgurl = $myts->makeTboxData4Edit($imgurl); ! echo "<form action=index.php method=post>"._MD_TITLEC."<input type=text name=title value=\"$title\" size=51 maxlength=50><br><br>"._MD_IMGURLMAIN."<br><input type=text name=imgurl value=\"$imgurl\" size=100 maxlength=150><br><br>"; echo _MD_PARENT." "; $mytree->makeMySelBox("title", "title", $pid, 1, "pid"); // <input type=hidden name=pid value=\"$pid\"> ! echo "<br><input type=\"hidden\" name=\"cid\" value=\"".$cid."\"> ! <input type=\"hidden\" name=\"op\" value=\"modCatS\"><br> <input type=\"submit\" value=\""._MD_SAVE."\"> <input type=\"button\" value=\""._MD_DELETE."\" onClick=\"location='index.php?pid=$pid&cid=$cid&op=delCat'\">"; --- 597,611 ---- xoops_cp_header(); OpenTable(); ! echo "<h4>"._MD_MODCAT."</h4><br />"; $result=$xoopsDB->query("select pid, title, imgurl from ".$xoopsDB->prefix("mylinks_cat")." where cid=$cid"); list($pid,$title,$imgurl) = $xoopsDB->fetchRow($result); $title = $myts->makeTboxData4Edit($title); $imgurl = $myts->makeTboxData4Edit($imgurl); ! echo "<form action=index.php method=post>"._MD_TITLEC."<input type=text name=title value=\"$title\" size=51 maxlength=50><br /><br />"._MD_IMGURLMAIN."<br /><input type=text name=imgurl value=\"$imgurl\" size=100 maxlength=150><br /><br />"; echo _MD_PARENT." "; $mytree->makeMySelBox("title", "title", $pid, 1, "pid"); // <input type=hidden name=pid value=\"$pid\"> ! echo "<br /><input type=\"hidden\" name=\"cid\" value=\"".$cid."\"> ! <input type=\"hidden\" name=\"op\" value=\"modCatS\"><br /> <input type=\"submit\" value=\""._MD_SAVE."\"> <input type=\"button\" value=\""._MD_DELETE."\" onClick=\"location='index.php?pid=$pid&cid=$cid&op=delCat'\">"; *************** *** 799,803 **** xoops_cp_header(); OpenTable(); ! echo "<h4>" . _MD_GENERALSET . "</h4><br>"; echo "<form action=\"index.php\" method=\"post\">"; echo " --- 799,803 ---- xoops_cp_header(); OpenTable(); ! echo "<h4>" . _MD_GENERALSET . "</h4><br />"; echo "<form action=\"index.php\" method=\"post\">"; echo " |