|
@@ 155-169 (lines=15) @@
|
| 152 |
|
. " <input type='hidden' name='op' value='importCats'>\n" . " <input type='hidden' name='ok' value='0'>\n" . " <input style='margin: .5em 0em;' type='submit' value='" . _SUBMIT . "'><br>\n" . " </form>\n" . ' </td></tr>' . "</table>\n" . "<br>\n"; |
| 153 |
|
} |
| 154 |
|
// Add a New Sub-Category |
| 155 |
|
if ($catCount) { |
| 156 |
|
echo "<table class='outer' style='width: 100%; border-width: 0px; margin: 1px;'>\n" . " <tr><th style='font-size: larger;'>" . _MD_MYLINKS_ADDSUB . "</th></tr>\n" . " <tr class='odd'><td style='text-align: center;'>\n" . " <form method='post' action='main.php'>\n" . ' ' |
| 157 |
|
. _MD_MYLINKS_TITLEC . "\n" . " <input type='text' name='title' size='30' maxlength='50'> " . _MD_MYLINKS_IN . " \n" . ' ' . $myCatTree->makeSelBox('pid', 'title') . "\n" . " <input type='hidden' name='op' value='addCat'><br><br>\n" |
| 158 |
|
. " <input type='submit' value='" . _ADD . "'><br>\n" . " </form>\n" . " </td></tr>\n" . "</table>\n" . '<br>'; |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Modify Category Table Display |
| 162 |
|
if ($catCount) { |
| 163 |
|
echo "<table class='outer' style='width: 100%; border-width: 0px; margin: 1px;'>\n" . " <tr><th style='font-size: larger;'>" . _MD_MYLINKS_MODCAT . "</th></tr>\n" . " <tr class='odd'><td style='text-align: center;'>\n" . " <form method='get' action='main.php'>\n" |
| 164 |
|
// ." <h4>" . _MD_MYLINKS_MODCAT . "</h4><br>\n" |
| 165 |
|
. ' ' . _MD_MYLINKS_CATEGORYC . "\n" . ' ' . $myCatTree->makeSelBox('cid', 'title') . "\n" . " <br><br>\n" . " <input type='hidden' name='op' value='modCat'>\n" . " <input type='submit' value='" . _MD_MYLINKS_MODIFY . "'>\n" . " </form>\n" . " </td></tr>\n" |
| 166 |
|
. "</table>\n" . "<br>\n"; |
| 167 |
|
} |
| 168 |
|
include __DIR__ . '/admin_footer.php'; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
function modLink() |
| 172 |
|
{ |
|
@@ 162-177 (lines=16) @@
|
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Modify Category Table Display |
| 162 |
|
if ($catCount) { |
| 163 |
|
echo "<table class='outer' style='width: 100%; border-width: 0px; margin: 1px;'>\n" . " <tr><th style='font-size: larger;'>" . _MD_MYLINKS_MODCAT . "</th></tr>\n" . " <tr class='odd'><td style='text-align: center;'>\n" . " <form method='get' action='main.php'>\n" |
| 164 |
|
// ." <h4>" . _MD_MYLINKS_MODCAT . "</h4><br>\n" |
| 165 |
|
. ' ' . _MD_MYLINKS_CATEGORYC . "\n" . ' ' . $myCatTree->makeSelBox('cid', 'title') . "\n" . " <br><br>\n" . " <input type='hidden' name='op' value='modCat'>\n" . " <input type='submit' value='" . _MD_MYLINKS_MODIFY . "'>\n" . " </form>\n" . " </td></tr>\n" |
| 166 |
|
. "</table>\n" . "<br>\n"; |
| 167 |
|
} |
| 168 |
|
include __DIR__ . '/admin_footer.php'; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
function modLink() |
| 172 |
|
{ |
| 173 |
|
global $xoopsDB, $myts, $myCatTree, $xoopsModule; |
| 174 |
|
|
| 175 |
|
$linkimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/images/shots/'); |
| 176 |
|
$lid = MylinksUtility::mylinks_cleanVars($_GET, 'lid', 0, 'int', array('min' => 0)); |
| 177 |
|
$bknrptid = MylinksUtility::mylinks_cleanVars($_GET, 'bknrptid', 0, 'int', array('min' => 0)); |
| 178 |
|
|
| 179 |
|
xoops_cp_header(); |
| 180 |
|
|