@@ -19,11 +19,11 @@ |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . '/admin_header.php'; |
|
| 22 | +include_once __DIR__.'/admin_header.php'; |
|
| 23 | 23 | $xoops = Xoops::getInstance(); |
| 24 | 24 | if (isset($_POST["op"]) && ($_POST["op"] === "delfileok")) { |
| 25 | 25 | $dir = PublisherUtils::getUploadDir(true, 'content'); |
| 26 | - @unlink($dir . '/' . $_POST["address"]); |
|
| 26 | + @unlink($dir.'/'.$_POST["address"]); |
|
| 27 | 27 | $xoops->redirect($_POST['backto'], 2, _AM_PUBLISHER_FDELETED); |
| 28 | 28 | } else { |
| 29 | 29 | $xoops->header(); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @version $Id:main.php 335 2011-12-05 20:24:01Z [email protected] $ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . '/admin_header.php'; |
|
| 22 | +include_once __DIR__.'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $xoops = Xoops::getInstance(); |
| 25 | 25 | |
@@ -79,16 +79,16 @@ discard block |
||
| 79 | 79 | PublisherUtils::openCollapsableBar('inventorytable', 'inventoryicon', _AM_PUBLISHER_INVENTORY); |
| 80 | 80 | echo "<br />"; |
| 81 | 81 | echo "<table width='100%' class='outer' cellspacing='1' cellpadding='3' border='0' ><tr>"; |
| 82 | -echo "<td class='head'>" . _AM_PUBLISHER_TOTALCAT . "</td><td align='center' class='even'>" . $totalcategories . "</td>"; |
|
| 83 | -echo "<td class='head'>" . _AM_PUBLISHER_TOTALSUBMITTED . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>"; |
|
| 84 | -echo "<td class='head'>" . _AM_PUBLISHER_TOTALPUBLISHED . "</td><td align='center' class='even'>" . $totalpublished . "</td>"; |
|
| 85 | -echo "<td class='head'>" . _AM_PUBLISHER_TOTAL_OFFLINE . "</td><td align='center' class='even'>" . $totaloffline . "</td>"; |
|
| 82 | +echo "<td class='head'>"._AM_PUBLISHER_TOTALCAT."</td><td align='center' class='even'>".$totalcategories."</td>"; |
|
| 83 | +echo "<td class='head'>"._AM_PUBLISHER_TOTALSUBMITTED."</td><td align='center' class='even'>".$totalsubmitted."</td>"; |
|
| 84 | +echo "<td class='head'>"._AM_PUBLISHER_TOTALPUBLISHED."</td><td align='center' class='even'>".$totalpublished."</td>"; |
|
| 85 | +echo "<td class='head'>"._AM_PUBLISHER_TOTAL_OFFLINE."</td><td align='center' class='even'>".$totaloffline."</td>"; |
|
| 86 | 86 | echo "</tr></table>"; |
| 87 | 87 | echo "<br />"; |
| 88 | 88 | |
| 89 | 89 | echo "<form><div style=\"margin-bottom: 12px;\">"; |
| 90 | -echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> "; |
|
| 91 | -echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; |
|
| 90 | +echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='"._AM_PUBLISHER_CATEGORY_CREATE."'> "; |
|
| 91 | +echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='"._AM_PUBLISHER_CREATEITEM."'> "; |
|
| 92 | 92 | echo "</div></form>"; |
| 93 | 93 | |
| 94 | 94 | PublisherUtils::closeCollapsableBar('inventorytable', 'inventoryicon'); |
@@ -152,57 +152,57 @@ discard block |
||
| 152 | 152 | case _PUBLISHER_STATUS_SUBMITTED: |
| 153 | 153 | $selectedtxt1 = "selected='selected'"; |
| 154 | 154 | $caption = _CO_PUBLISHER_SUBMITTED; |
| 155 | - $cond = " WHERE status = " . _PUBLISHER_STATUS_SUBMITTED . " "; |
|
| 155 | + $cond = " WHERE status = "._PUBLISHER_STATUS_SUBMITTED." "; |
|
| 156 | 156 | $status_explaination = _AM_PUBLISHER_SUBMITTED_EXP; |
| 157 | 157 | break; |
| 158 | 158 | |
| 159 | 159 | case _PUBLISHER_STATUS_PUBLISHED: |
| 160 | 160 | $selectedtxt2 = "selected='selected'"; |
| 161 | 161 | $caption = _CO_PUBLISHER_PUBLISHED; |
| 162 | - $cond = " WHERE status = " . _PUBLISHER_STATUS_PUBLISHED . " "; |
|
| 162 | + $cond = " WHERE status = "._PUBLISHER_STATUS_PUBLISHED." "; |
|
| 163 | 163 | $status_explaination = _AM_PUBLISHER_PUBLISHED_EXP; |
| 164 | 164 | break; |
| 165 | 165 | |
| 166 | 166 | case _PUBLISHER_STATUS_OFFLINE: |
| 167 | 167 | $selectedtxt3 = "selected='selected'"; |
| 168 | 168 | $caption = _CO_PUBLISHER_OFFLINE; |
| 169 | - $cond = " WHERE status = " . _PUBLISHER_STATUS_OFFLINE . " "; |
|
| 169 | + $cond = " WHERE status = "._PUBLISHER_STATUS_OFFLINE." "; |
|
| 170 | 170 | $status_explaination = _AM_PUBLISHER_OFFLINE_EXP; |
| 171 | 171 | break; |
| 172 | 172 | |
| 173 | 173 | case _PUBLISHER_STATUS_REJECTED: |
| 174 | 174 | $selectedtxt4 = "selected='selected'"; |
| 175 | 175 | $caption = _CO_PUBLISHER_REJECTED; |
| 176 | - $cond = " WHERE status = " . _PUBLISHER_STATUS_REJECTED . " "; |
|
| 176 | + $cond = " WHERE status = "._PUBLISHER_STATUS_REJECTED." "; |
|
| 177 | 177 | $status_explaination = _AM_PUBLISHER_REJECTED_ITEM_EXP; |
| 178 | 178 | break; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /* -- Code to show selected terms -- */ |
| 182 | -echo "<form name='pick' id='pick' action='" . $_SERVER['PHP_SELF'] . "' method='POST' style='margin: 0;'>"; |
|
| 182 | +echo "<form name='pick' id='pick' action='".$_SERVER['PHP_SELF']."' method='POST' style='margin: 0;'>"; |
|
| 183 | 183 | |
| 184 | 184 | echo " |
| 185 | 185 | <table width='100%' cellspacing='1' cellpadding='2' border='0' style='border-left: 1px solid silver; border-top: 1px solid silver; border-right: 1px solid silver;'> |
| 186 | 186 | <tr> |
| 187 | - <td><span style='font-weight: bold; font-variant: small-caps;'>" . _AM_PUBLISHER_SHOWING . " " . $caption . "</span></td> |
|
| 188 | - <td align='right'>" . _AM_PUBLISHER_SELECT_SORT . " |
|
| 187 | + <td><span style='font-weight: bold; font-variant: small-caps;'>" . _AM_PUBLISHER_SHOWING." ".$caption."</span></td> |
|
| 188 | + <td align='right'>" . _AM_PUBLISHER_SELECT_SORT." |
|
| 189 | 189 | <select name='sortsel' onchange='submit()'> |
| 190 | - <option value='itemid' $sorttxtitemid>" . _AM_PUBLISHER_ID . "</option> |
|
| 191 | - <option value='title' $sorttxttitle>" . _AM_PUBLISHER_TITLE . "</option> |
|
| 192 | - <option value='datesub' $sorttxtcreated>" . _AM_PUBLISHER_CREATED . "</option> |
|
| 193 | - <option value='weight' $sorttxtweight>" . _CO_PUBLISHER_WEIGHT . "</option> |
|
| 190 | + <option value='itemid' $sorttxtitemid>"._AM_PUBLISHER_ID."</option> |
|
| 191 | + <option value='title' $sorttxttitle>"._AM_PUBLISHER_TITLE."</option> |
|
| 192 | + <option value='datesub' $sorttxtcreated>"._AM_PUBLISHER_CREATED."</option> |
|
| 193 | + <option value='weight' $sorttxtweight>"._CO_PUBLISHER_WEIGHT."</option> |
|
| 194 | 194 | </select> |
| 195 | 195 | <select name='ordersel' onchange='submit()'> |
| 196 | - <option value='ASC' $ordertxtasc>" . _AM_PUBLISHER_ASC . "</option> |
|
| 197 | - <option value='DESC' $ordertxtdesc>" . _AM_PUBLISHER_DESC . "</option> |
|
| 196 | + <option value='ASC' $ordertxtasc>"._AM_PUBLISHER_ASC."</option> |
|
| 197 | + <option value='DESC' $ordertxtdesc>"._AM_PUBLISHER_DESC."</option> |
|
| 198 | 198 | </select> |
| 199 | - " . _AM_PUBLISHER_SELECT_STATUS . " : |
|
| 199 | + " . _AM_PUBLISHER_SELECT_STATUS." : |
|
| 200 | 200 | <select name='statussel' onchange='submit()'> |
| 201 | - <option value='0' $selectedtxt0>" . _AM_PUBLISHER_ALL . " [$totalitems]</option> |
|
| 202 | - <option value='1' $selectedtxt1>" . _CO_PUBLISHER_SUBMITTED . " [$totalsubmitted]</option> |
|
| 203 | - <option value='2' $selectedtxt2>" . _CO_PUBLISHER_PUBLISHED . " [$totalpublished]</option> |
|
| 204 | - <option value='3' $selectedtxt3>" . _CO_PUBLISHER_OFFLINE . " [$totaloffline]</option> |
|
| 205 | - <option value='4' $selectedtxt4>" . _CO_PUBLISHER_REJECTED . " [$totalrejected]</option> |
|
| 201 | + <option value='0' $selectedtxt0>"._AM_PUBLISHER_ALL." [$totalitems]</option> |
|
| 202 | + <option value='1' $selectedtxt1>"._CO_PUBLISHER_SUBMITTED." [$totalsubmitted]</option> |
|
| 203 | + <option value='2' $selectedtxt2>"._CO_PUBLISHER_PUBLISHED." [$totalpublished]</option> |
|
| 204 | + <option value='3' $selectedtxt3>"._CO_PUBLISHER_OFFLINE." [$totaloffline]</option> |
|
| 205 | + <option value='4' $selectedtxt4>"._CO_PUBLISHER_REJECTED." [$totalrejected]</option> |
|
| 206 | 206 | </select> |
| 207 | 207 | </td> |
| 208 | 208 | </tr> |
@@ -233,34 +233,34 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | case _PUBLISHER_STATUS_SUBMITTED: |
| 235 | 235 | $statustxt = _CO_PUBLISHER_SUBMITTED; |
| 236 | - $approve = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/approve.gif' title='" . _AM_PUBLISHER_SUBMISSION_MODERATE . "' alt='" . _AM_PUBLISHER_SUBMISSION_MODERATE . "' /></a> "; |
|
| 236 | + $approve = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/approve.gif' title='"._AM_PUBLISHER_SUBMISSION_MODERATE."' alt='"._AM_PUBLISHER_SUBMISSION_MODERATE."' /></a> "; |
|
| 237 | 237 | $clone = ''; |
| 238 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 238 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 239 | 239 | $modify = ""; |
| 240 | 240 | break; |
| 241 | 241 | |
| 242 | 242 | case _PUBLISHER_STATUS_PUBLISHED: |
| 243 | 243 | $statustxt = _CO_PUBLISHER_PUBLISHED; |
| 244 | 244 | $approve = ""; |
| 245 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a> "; |
|
| 246 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_ITEM_EDIT . "' alt='" . _AM_PUBLISHER_ITEM_EDIT . "' /></a> "; |
|
| 247 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 245 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a> "; |
|
| 246 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_ITEM_EDIT."' alt='"._AM_PUBLISHER_ITEM_EDIT."' /></a> "; |
|
| 247 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 248 | 248 | break; |
| 249 | 249 | |
| 250 | 250 | case _PUBLISHER_STATUS_OFFLINE: |
| 251 | 251 | $statustxt = _CO_PUBLISHER_OFFLINE; |
| 252 | 252 | $approve = ""; |
| 253 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a> "; |
|
| 254 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_ITEM_EDIT . "' alt='" . _AM_PUBLISHER_ITEM_EDIT . "' /></a> "; |
|
| 255 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 253 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a> "; |
|
| 254 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_ITEM_EDIT."' alt='"._AM_PUBLISHER_ITEM_EDIT."' /></a> "; |
|
| 255 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 256 | 256 | break; |
| 257 | 257 | |
| 258 | 258 | case _PUBLISHER_STATUS_REJECTED: |
| 259 | 259 | $statustxt = _CO_PUBLISHER_REJECTED; |
| 260 | 260 | $approve = ""; |
| 261 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a> "; |
|
| 262 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_REJECTED_EDIT . "' alt='" . _AM_PUBLISHER_REJECTED_EDIT . "' /></a> "; |
|
| 263 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 261 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a> "; |
|
| 262 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_REJECTED_EDIT."' alt='"._AM_PUBLISHER_REJECTED_EDIT."' /></a> "; |
|
| 263 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 264 | 264 | break; |
| 265 | 265 | |
| 266 | 266 | case "default": |
@@ -268,24 +268,24 @@ discard block |
||
| 268 | 268 | $statustxt = _AM_PUBLISHER_STATUS0; |
| 269 | 269 | $approve = ""; |
| 270 | 270 | $clone = ''; |
| 271 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_REJECTED_EDIT . "' alt='" . _AM_PUBLISHER_REJECTED_EDIT . "' /></a> "; |
|
| 272 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 271 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_REJECTED_EDIT."' alt='"._AM_PUBLISHER_REJECTED_EDIT."' /></a> "; |
|
| 272 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 273 | 273 | break; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | echo "<tr>"; |
| 277 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid'). "</td>"; |
|
| 278 | - echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . "</td>"; |
|
| 279 | - echo "<td class='even' align='left'>" . $itemsObj[$i]->getItemLink() . "</td>"; |
|
| 280 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>"; |
|
| 281 | - echo "<td class='even' align='center'>" . $statustxt . "</td>"; |
|
| 282 | - echo "<td class='even' align='center'> " . $approve . $clone . $modify . $delete . "</td>"; |
|
| 277 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 278 | + echo "<td class='even' align='left'>".$categoryObj->getCategoryLink()."</td>"; |
|
| 279 | + echo "<td class='even' align='left'>".$itemsObj[$i]->getItemLink()."</td>"; |
|
| 280 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub()."</td>"; |
|
| 281 | + echo "<td class='even' align='center'>".$statustxt."</td>"; |
|
| 282 | + echo "<td class='even' align='center'> ".$approve.$clone.$modify.$delete."</td>"; |
|
| 283 | 283 | echo "</tr>"; |
| 284 | 284 | } |
| 285 | 285 | } else { |
| 286 | 286 | // that is, $numrows = 0, there's no entries yet |
| 287 | 287 | echo "<tr>"; |
| 288 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMSSEL . "</td>"; |
|
| 288 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMSSEL."</td>"; |
|
| 289 | 289 | echo "</tr>"; |
| 290 | 290 | } |
| 291 | 291 | echo "</table>\n"; |
@@ -293,9 +293,9 @@ discard block |
||
| 293 | 293 | $pagenav = new XoopsPageNav($numrows, $publisher->getConfig('idxcat_perpage'), $startentry, 'startentry', "statussel=$statussel&sortsel=$sortsel&ordersel=$ordersel"); |
| 294 | 294 | |
| 295 | 295 | if ($publisher->getConfig('format_image_nav') == 1) { |
| 296 | - echo '<div style="text-align:right; background-color: white; margin: 10px 0;">' . $pagenav->renderImageNav() . '</div>'; |
|
| 296 | + echo '<div style="text-align:right; background-color: white; margin: 10px 0;">'.$pagenav->renderImageNav().'</div>'; |
|
| 297 | 297 | } else { |
| 298 | - echo '<div style="text-align:right; background-color: white; margin: 10px 0;">' . $pagenav->renderNav() . '</div>'; |
|
| 298 | + echo '<div style="text-align:right; background-color: white; margin: 10px 0;">'.$pagenav->renderNav().'</div>'; |
|
| 299 | 299 | } |
| 300 | 300 | // ENDs code to show active entries |
| 301 | 301 | PublisherUtils::closeCollapsableBar('allitemstable', 'allitemsicon'); |
@@ -322,8 +322,8 @@ discard block |
||
| 322 | 322 | $res = PublisherUtils::mkdir($thePath); |
| 323 | 323 | |
| 324 | 324 | if ($res) { |
| 325 | - $source = PUBLISHER_ROOT_PATH . "/images/blank.png"; |
|
| 326 | - $dest = $thePath . "blank.png"; |
|
| 325 | + $source = PUBLISHER_ROOT_PATH."/images/blank.png"; |
|
| 326 | + $dest = $thePath."blank.png"; |
|
| 327 | 327 | PublisherUtils::copyr($source, $dest); |
| 328 | 328 | } |
| 329 | 329 | $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED; |
@@ -334,8 +334,8 @@ discard block |
||
| 334 | 334 | $res = PublisherUtils::mkdir($thePath); |
| 335 | 335 | |
| 336 | 336 | if ($res) { |
| 337 | - $source = PUBLISHER_ROOT_PATH . '/images/blank.png'; |
|
| 338 | - $dest = $thePath . 'blank.png'; |
|
| 337 | + $source = PUBLISHER_ROOT_PATH.'/images/blank.png'; |
|
| 338 | + $dest = $thePath.'blank.png'; |
|
| 339 | 339 | PublisherUtils::copyr($source, $dest); |
| 340 | 340 | } |
| 341 | 341 | $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED; |
@@ -346,8 +346,8 @@ discard block |
||
| 346 | 346 | $res = PublisherUtils::mkdir($thePath); |
| 347 | 347 | |
| 348 | 348 | if ($res) { |
| 349 | - $source = PUBLISHER_ROOT_PATH . '/images/blank.png'; |
|
| 350 | - $dest = $thePath . 'blank.png'; |
|
| 349 | + $source = PUBLISHER_ROOT_PATH.'/images/blank.png'; |
|
| 350 | + $dest = $thePath.'blank.png'; |
|
| 351 | 351 | PublisherUtils::copyr($source, $dest); |
| 352 | 352 | } |
| 353 | 353 | $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED; |
@@ -364,11 +364,11 @@ discard block |
||
| 364 | 364 | { |
| 365 | 365 | echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; |
| 366 | 366 | echo "<tr>"; |
| 367 | - echo "<td width='40px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 368 | - echo "<td width='100px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMCAT . "</strong></td>"; |
|
| 369 | - echo "<td class='bg3' align='center'><strong>" . _AM_PUBLISHER_TITLE . "</strong></td>"; |
|
| 370 | - echo "<td width='90px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 371 | - echo "<td width='90px' class='bg3' align='center'><strong>" . _CO_PUBLISHER_STATUS . "</strong></td>"; |
|
| 372 | - echo "<td width='90px' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 367 | + echo "<td width='40px' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 368 | + echo "<td width='100px' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMCAT."</strong></td>"; |
|
| 369 | + echo "<td class='bg3' align='center'><strong>"._AM_PUBLISHER_TITLE."</strong></td>"; |
|
| 370 | + echo "<td width='90px' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 371 | + echo "<td width='90px' class='bg3' align='center'><strong>"._CO_PUBLISHER_STATUS."</strong></td>"; |
|
| 372 | + echo "<td width='90px' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 373 | 373 | echo "</tr>"; |
| 374 | 374 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . '/admin_header.php'; |
|
| 22 | +include_once __DIR__.'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $xoops = Xoops::getInstance(); |
| 25 | 25 | $errors = array(); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | mkdir(PublisherUtils::getUploadDir(true, 'content'), 0757); |
| 47 | 47 | } |
| 48 | 48 | $allowed_mimetypes = array('text/html', 'text/plain', 'application/xhtml+xml'); |
| 49 | - $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir(true, 'content') . '/', $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight); |
|
| 49 | + $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir(true, 'content').'/', $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight); |
|
| 50 | 50 | if ($uploader->fetchMedia($post_field)) { |
| 51 | 51 | $uploader->setTargetFileName($uploader->getMediaName()); |
| 52 | 52 | if ($uploader->upload()) { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . '/admin_header.php'; |
|
| 22 | +include_once __DIR__.'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $xoops = Xoops::getInstance(); |
| 25 | 25 | PublisherUtils::cpHeader(); |
@@ -30,15 +30,15 @@ discard block |
||
| 30 | 30 | $dir = PublisherUtils::getUploadDir(true, 'content'); |
| 31 | 31 | |
| 32 | 32 | if (!preg_match('/777/i', decoct(fileperms($dir)))) { |
| 33 | - echo "<font color='FF0000'><h4>" . _AM_PUBLISHER_PERMERROR . "</h4></font>"; |
|
| 33 | + echo "<font color='FF0000'><h4>"._AM_PUBLISHER_PERMERROR."</h4></font>"; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // Upload File |
| 37 | 37 | echo "<form name='form_name2' id='form_name2' action='pw_upload_file.php' method='post' enctype='multipart/form-data'>"; |
| 38 | 38 | echo "<table cellspacing='1' width='100%' class='outer'>"; |
| 39 | -echo "<tr><th colspan='2'>" . _AM_PUBLISHER_UPLOAD_FILE . "</th></tr>"; |
|
| 40 | -echo "<tr valign='top' align='left'><td class='head'>" . _AM_PUBLISHER_SEARCH . "</td><td class='even'><input type='file' name='fileupload' id='fileupload' size='30' /></td></tr>"; |
|
| 41 | -echo "<tr valign='top' align='left'><td class='head'><input type='hidden' name='MAX_FILE_SIZE' id='op' value='500000' /></td><td class='even'><input type='submit' name='submit' value='" . _AM_PUBLISHER_UPLOAD . "' /></td></tr>"; |
|
| 39 | +echo "<tr><th colspan='2'>"._AM_PUBLISHER_UPLOAD_FILE."</th></tr>"; |
|
| 40 | +echo "<tr valign='top' align='left'><td class='head'>"._AM_PUBLISHER_SEARCH."</td><td class='even'><input type='file' name='fileupload' id='fileupload' size='30' /></td></tr>"; |
|
| 41 | +echo "<tr valign='top' align='left'><td class='head'><input type='hidden' name='MAX_FILE_SIZE' id='op' value='500000' /></td><td class='even'><input type='submit' name='submit' value='"._AM_PUBLISHER_UPLOAD."' /></td></tr>"; |
|
| 42 | 42 | echo "</table>"; |
| 43 | 43 | echo "</form>"; |
| 44 | 44 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @author The SmartFactory <www.smartfactory.ca> |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -include_once __DIR__ . '/admin_header.php'; |
|
| 24 | +include_once __DIR__.'/admin_header.php'; |
|
| 25 | 25 | |
| 26 | 26 | $xoops = Xoops::getInstance(); |
| 27 | 27 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | // Storing the item |
| 129 | 129 | if (!$itemObj->store()) { |
| 130 | - $xoops->redirect("javascript:history.go(-1)", 3, $error_msg . PublisherUtils::formatErrors($itemObj->getErrors())); |
|
| 130 | + $xoops->redirect("javascript:history.go(-1)", 3, $error_msg.PublisherUtils::formatErrors($itemObj->getErrors())); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // attach file if any |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | if ($confirm) { |
| 155 | 155 | if (!$publisher->getItemHandler()->delete($itemObj)) { |
| 156 | - $xoops->redirect("item.php", 2, _AM_PUBLISHER_ITEM_DELETE_ERROR . PublisherUtils::formatErrors($itemObj->getErrors())); |
|
| 156 | + $xoops->redirect("item.php", 2, _AM_PUBLISHER_ITEM_DELETE_ERROR.PublisherUtils::formatErrors($itemObj->getErrors())); |
|
| 157 | 157 | exit(); |
| 158 | 158 | } |
| 159 | 159 | $xoops->redirect("item.php", 2, sprintf(_AM_PUBLISHER_ITEMISDELETED, $itemObj->title())); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $xoops->header(); |
| 162 | 162 | echo $xoops->confirm(array( |
| 163 | 163 | 'op' => 'del', 'itemid' => $itemObj->getVar('itemid'), 'confirm' => 1, 'name' => $itemObj->title() |
| 164 | - ), 'item.php', _AM_PUBLISHER_DELETETHISITEM . " <br />'" . $itemObj->title() . "'. <br /> <br />", _AM_PUBLISHER_DELETE); |
|
| 164 | + ), 'item.php', _AM_PUBLISHER_DELETETHISITEM." <br />'".$itemObj->title()."'. <br /> <br />", _AM_PUBLISHER_DELETE); |
|
| 165 | 165 | $xoops->footer(); |
| 166 | 166 | } |
| 167 | 167 | exit(); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | echo "<br />\n"; |
| 176 | 176 | echo "<form><div style=\"margin-bottom: 12px;\">"; |
| 177 | - echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; |
|
| 177 | + echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='"._AM_PUBLISHER_CREATEITEM."'> "; |
|
| 178 | 178 | echo "</div></form>"; |
| 179 | 179 | |
| 180 | 180 | $orderBy = 'datesub'; |
@@ -193,40 +193,40 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 195 | 195 | echo "<tr>"; |
| 196 | - echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 197 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; |
|
| 198 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_TITLE . "</strong></td>"; |
|
| 199 | - echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 200 | - echo "<td width='80' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 196 | + echo "<td width='40' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 197 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCATEGORYNAME."</strong></td>"; |
|
| 198 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_TITLE."</strong></td>"; |
|
| 199 | + echo "<td width='90' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 200 | + echo "<td width='80' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 201 | 201 | echo "</tr>"; |
| 202 | 202 | if ($totalitems > 0) { |
| 203 | 203 | for ($i = 0; $i < $totalItemsOnPage; ++$i) { |
| 204 | 204 | $categoryObj = $itemsObj[$i]->category(); |
| 205 | 205 | |
| 206 | - $approve = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/approve.gif' title='" . _AM_PUBLISHER_SUBMISSION_MODERATE . "' alt='" . _AM_PUBLISHER_SUBMISSION_MODERATE . "' /></a> "; |
|
| 206 | + $approve = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/approve.gif' title='"._AM_PUBLISHER_SUBMISSION_MODERATE."' alt='"._AM_PUBLISHER_SUBMISSION_MODERATE."' /></a> "; |
|
| 207 | 207 | $clone = ''; |
| 208 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "' /></a>"; |
|
| 208 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."' /></a>"; |
|
| 209 | 209 | $modify = ""; |
| 210 | 210 | |
| 211 | 211 | echo "<tr>"; |
| 212 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid') . "</td>"; |
|
| 213 | - echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . "</td>"; |
|
| 214 | - echo "<td class='even' align='left'><a href='" . PUBLISHER_URL . "/item.php?itemid=" . $itemsObj[$i]->getVar('itemid') . "'>" . $itemsObj[$i]->title() . "</a></td>"; |
|
| 215 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>"; |
|
| 212 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 213 | + echo "<td class='even' align='left'>".$categoryObj->getCategoryLink()."</td>"; |
|
| 214 | + echo "<td class='even' align='left'><a href='".PUBLISHER_URL."/item.php?itemid=".$itemsObj[$i]->getVar('itemid')."'>".$itemsObj[$i]->title()."</a></td>"; |
|
| 215 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub()."</td>"; |
|
| 216 | 216 | echo "<td class='even' align='center'> $approve $clone $modify $delete </td>"; |
| 217 | 217 | echo "</tr>"; |
| 218 | 218 | } |
| 219 | 219 | } else { |
| 220 | 220 | $itemid = 0; |
| 221 | 221 | echo "<tr>"; |
| 222 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS_SUBMITTED . "</td>"; |
|
| 222 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMS_SUBMITTED."</td>"; |
|
| 223 | 223 | echo "</tr>"; |
| 224 | 224 | } |
| 225 | 225 | echo "</table>\n"; |
| 226 | 226 | echo "<br />\n"; |
| 227 | 227 | |
| 228 | 228 | $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $submittedstartitem, 'submittedstartitem'); |
| 229 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 229 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 230 | 230 | |
| 231 | 231 | PublisherUtils::closeCollapsableBar('submiteditemstable', 'submiteditemsicon'); |
| 232 | 232 | |
@@ -243,44 +243,44 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 245 | 245 | echo "<tr>"; |
| 246 | - echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 247 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; |
|
| 248 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_TITLE . "</strong></td>"; |
|
| 249 | - echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 250 | - echo "<td width='80' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 246 | + echo "<td width='40' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 247 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCATEGORYNAME."</strong></td>"; |
|
| 248 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_TITLE."</strong></td>"; |
|
| 249 | + echo "<td width='90' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 250 | + echo "<td width='80' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 251 | 251 | echo "</tr>"; |
| 252 | 252 | if ($totalitems > 0) { |
| 253 | 253 | for ($i = 0; $i < $totalItemsOnPage; ++$i) { |
| 254 | 254 | $categoryObj = $itemsObj[$i]->category(); |
| 255 | 255 | |
| 256 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; |
|
| 257 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; |
|
| 258 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a>"; |
|
| 256 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif' title='"._AM_PUBLISHER_EDITITEM."' alt='"._AM_PUBLISHER_EDITITEM."' /></a>"; |
|
| 257 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."'/></a>"; |
|
| 258 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a>"; |
|
| 259 | 259 | |
| 260 | 260 | echo "<tr>"; |
| 261 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid') . "</td>"; |
|
| 262 | - echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . "</td>"; |
|
| 263 | - echo "<td class='even' align='left'>" . $itemsObj[$i]->getItemLink() . "</td>"; |
|
| 264 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>"; |
|
| 261 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 262 | + echo "<td class='even' align='left'>".$categoryObj->getCategoryLink()."</td>"; |
|
| 263 | + echo "<td class='even' align='left'>".$itemsObj[$i]->getItemLink()."</td>"; |
|
| 264 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub()."</td>"; |
|
| 265 | 265 | echo "<td class='even' align='center'> $clone $modify $delete </td>"; |
| 266 | 266 | echo "</tr>"; |
| 267 | 267 | } |
| 268 | 268 | } else { |
| 269 | 269 | $itemid = 0; |
| 270 | 270 | echo "<tr>"; |
| 271 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>"; |
|
| 271 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMS."</td>"; |
|
| 272 | 272 | echo "</tr>"; |
| 273 | 273 | } |
| 274 | 274 | echo "</table>\n"; |
| 275 | 275 | echo "<br />\n"; |
| 276 | 276 | |
| 277 | 277 | $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $publishedstartitem, 'publishedstartitem'); |
| 278 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 278 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 279 | 279 | |
| 280 | 280 | PublisherUtils::closeCollapsableBar('item_publisheditemstable', 'item_publisheditemsicon'); |
| 281 | 281 | |
| 282 | 282 | // Display Offline articles |
| 283 | - PublisherUtils::openCollapsableBar('offlineitemstable', 'offlineitemsicon', _AM_PUBLISHER_ITEMS . " " . _CO_PUBLISHER_OFFLINE, _AM_PUBLISHER_OFFLINE_EXP); |
|
| 283 | + PublisherUtils::openCollapsableBar('offlineitemstable', 'offlineitemsicon', _AM_PUBLISHER_ITEMS." "._CO_PUBLISHER_OFFLINE, _AM_PUBLISHER_OFFLINE_EXP); |
|
| 284 | 284 | |
| 285 | 285 | $totalitems = $publisher->getItemHandler()->getItemsCount(-1, array(_PUBLISHER_STATUS_OFFLINE)); |
| 286 | 286 | |
@@ -291,39 +291,39 @@ discard block |
||
| 291 | 291 | |
| 292 | 292 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 293 | 293 | echo "<tr>"; |
| 294 | - echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 295 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; |
|
| 296 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_TITLE . "</strong></td>"; |
|
| 297 | - echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 298 | - echo "<td width='80' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 294 | + echo "<td width='40' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 295 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCATEGORYNAME."</strong></td>"; |
|
| 296 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_TITLE."</strong></td>"; |
|
| 297 | + echo "<td width='90' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 298 | + echo "<td width='80' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 299 | 299 | echo "</tr>"; |
| 300 | 300 | if ($totalitems > 0) { |
| 301 | 301 | for ($i = 0; $i < $totalItemsOnPage; ++$i) { |
| 302 | 302 | $categoryObj = $itemsObj[$i]->category(); |
| 303 | 303 | |
| 304 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; |
|
| 305 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; |
|
| 306 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a>"; |
|
| 304 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif' title='"._AM_PUBLISHER_EDITITEM."' alt='"._AM_PUBLISHER_EDITITEM."' /></a>"; |
|
| 305 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."'/></a>"; |
|
| 306 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a>"; |
|
| 307 | 307 | |
| 308 | 308 | echo "<tr>"; |
| 309 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid') . "</td>"; |
|
| 310 | - echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . "</td>"; |
|
| 311 | - echo "<td class='even' align='left'>" . $itemsObj[$i]->getItemLink() . "</td>"; |
|
| 312 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>"; |
|
| 309 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 310 | + echo "<td class='even' align='left'>".$categoryObj->getCategoryLink()."</td>"; |
|
| 311 | + echo "<td class='even' align='left'>".$itemsObj[$i]->getItemLink()."</td>"; |
|
| 312 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub()."</td>"; |
|
| 313 | 313 | echo "<td class='even' align='center'> $clone $modify $delete </td>"; |
| 314 | 314 | echo "</tr>"; |
| 315 | 315 | } |
| 316 | 316 | } else { |
| 317 | 317 | $itemid = 0; |
| 318 | 318 | echo "<tr>"; |
| 319 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS_OFFLINE . "</td>"; |
|
| 319 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMS_OFFLINE."</td>"; |
|
| 320 | 320 | echo "</tr>"; |
| 321 | 321 | } |
| 322 | 322 | echo "</table>\n"; |
| 323 | 323 | echo "<br />\n"; |
| 324 | 324 | |
| 325 | 325 | $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $offlinestartitem, 'offlinestartitem'); |
| 326 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 326 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 327 | 327 | |
| 328 | 328 | PublisherUtils::closeCollapsableBar('offlineitemstable', 'offlineitemsicon'); |
| 329 | 329 | |
@@ -340,39 +340,39 @@ discard block |
||
| 340 | 340 | |
| 341 | 341 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 342 | 342 | echo "<tr>"; |
| 343 | - echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 344 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; |
|
| 345 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_TITLE . "</strong></td>"; |
|
| 346 | - echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 347 | - echo "<td width='80' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 343 | + echo "<td width='40' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 344 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCATEGORYNAME."</strong></td>"; |
|
| 345 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_TITLE."</strong></td>"; |
|
| 346 | + echo "<td width='90' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 347 | + echo "<td width='80' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 348 | 348 | echo "</tr>"; |
| 349 | 349 | if ($totalitems > 0) { |
| 350 | 350 | for ($i = 0; $i < $totalItemsOnPage; ++$i) { |
| 351 | 351 | $categoryObj = $itemsObj[$i]->category(); |
| 352 | 352 | |
| 353 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; |
|
| 354 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; |
|
| 355 | - $clone = "<a href='item.php?op=clone&itemid=" . $itemsObj[$i]->getVar('itemid') . "'><img src='" . PUBLISHER_URL . "/images/links/clone.gif' title='" . _AM_PUBLISHER_CLONE_ITEM . "' alt='" . _AM_PUBLISHER_CLONE_ITEM . "' /></a>"; |
|
| 353 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif' title='"._AM_PUBLISHER_EDITITEM."' alt='"._AM_PUBLISHER_EDITITEM."' /></a>"; |
|
| 354 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."'/></a>"; |
|
| 355 | + $clone = "<a href='item.php?op=clone&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/clone.gif' title='"._AM_PUBLISHER_CLONE_ITEM."' alt='"._AM_PUBLISHER_CLONE_ITEM."' /></a>"; |
|
| 356 | 356 | |
| 357 | 357 | echo "<tr>"; |
| 358 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid') . "</td>"; |
|
| 359 | - echo "<td class='even' align='left'>" . $categoryObj->getCategoryLink() . "</td>"; |
|
| 360 | - echo "<td class='even' align='left'>" . $itemsObj[$i]->getItemLink() . "</td>"; |
|
| 361 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub() . "</td>"; |
|
| 358 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 359 | + echo "<td class='even' align='left'>".$categoryObj->getCategoryLink()."</td>"; |
|
| 360 | + echo "<td class='even' align='left'>".$itemsObj[$i]->getItemLink()."</td>"; |
|
| 361 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub()."</td>"; |
|
| 362 | 362 | echo "<td class='even' align='center'> $clone $modify $delete </td>"; |
| 363 | 363 | echo "</tr>"; |
| 364 | 364 | } |
| 365 | 365 | } else { |
| 366 | 366 | $itemid = 0; |
| 367 | 367 | echo "<tr>"; |
| 368 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS_REJECTED . "</td>"; |
|
| 368 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMS_REJECTED."</td>"; |
|
| 369 | 369 | echo "</tr>"; |
| 370 | 370 | } |
| 371 | 371 | echo "</table>\n"; |
| 372 | 372 | echo "<br />\n"; |
| 373 | 373 | |
| 374 | 374 | $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $rejectedstartitem, 'rejectedstartitem'); |
| 375 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 375 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 376 | 376 | |
| 377 | 377 | PublisherUtils::closeCollapsableBar('Rejecteditemstable', 'rejecteditemsicon'); |
| 378 | 378 | break; |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | |
| 447 | 447 | if (!$clone) { |
| 448 | 448 | echo "<form><div style=\"margin-bottom: 10px;\">"; |
| 449 | - echo "<input type='button' name='button' onclick=\"location='item.php?op=clone&itemid=" . $itemObj->getVar('itemid') . "'\" value='" . _AM_PUBLISHER_CLONE_ITEM . "'> "; |
|
| 449 | + echo "<input type='button' name='button' onclick=\"location='item.php?op=clone&itemid=".$itemObj->getVar('itemid')."'\" value='"._AM_PUBLISHER_CLONE_ITEM."'> "; |
|
| 450 | 450 | echo "</div></form>"; |
| 451 | 451 | } |
| 452 | 452 | } else { |
@@ -476,15 +476,15 @@ discard block |
||
| 476 | 476 | $dir = PublisherUtils::getUploadDir(true, 'content'); |
| 477 | 477 | |
| 478 | 478 | if (!preg_match('/777/i', decoct(fileperms($dir)))) { |
| 479 | - echo "<font color='FF0000'><h4>" . _AM_PUBLISHER_PERMERROR . "</h4></font>"; |
|
| 479 | + echo "<font color='FF0000'><h4>"._AM_PUBLISHER_PERMERROR."</h4></font>"; |
|
| 480 | 480 | } |
| 481 | 481 | |
| 482 | 482 | // Upload File |
| 483 | 483 | echo "<form name='form_name2' id='form_name2' action='pw_upload_file.php' method='post' enctype='multipart/form-data'>"; |
| 484 | 484 | echo "<table cellspacing='1' width='100%' class='outer'>"; |
| 485 | - echo "<tr><th colspan='2'>" . _AM_PUBLISHER_UPLOAD_FILE . "</th></tr>"; |
|
| 486 | - echo "<tr valign='top' align='left'><td class='head'>" . _AM_PUBLISHER_SEARCH_PW . "</td><td class='even'><input type='file' name='fileupload' id='fileupload' size='30' /></td></tr>"; |
|
| 487 | - echo "<tr valign='top' align='left'><td class='head'><input type='hidden' name='MAX_FILE_SIZE' id='op' value='500000' /></td><td class='even'><input type='submit' name='submit' value='" . _AM_PUBLISHER_UPLOAD . "' /></td></tr>"; |
|
| 485 | + echo "<tr><th colspan='2'>"._AM_PUBLISHER_UPLOAD_FILE."</th></tr>"; |
|
| 486 | + echo "<tr valign='top' align='left'><td class='head'>"._AM_PUBLISHER_SEARCH_PW."</td><td class='even'><input type='file' name='fileupload' id='fileupload' size='30' /></td></tr>"; |
|
| 487 | + echo "<tr valign='top' align='left'><td class='head'><input type='hidden' name='MAX_FILE_SIZE' id='op' value='500000' /></td><td class='even'><input type='submit' name='submit' value='"._AM_PUBLISHER_UPLOAD."' /></td></tr>"; |
|
| 488 | 488 | echo "<input type='hidden' name='backto' value='$publisher_current_page'/>"; |
| 489 | 489 | echo "</table>"; |
| 490 | 490 | echo "</form>"; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @version $Id$ |
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | -include_once __DIR__ . '/admin_header.php'; |
|
| 24 | +include_once __DIR__.'/admin_header.php'; |
|
| 25 | 25 | |
| 26 | 26 | $xoops = Xoops::getInstance(); |
| 27 | 27 | $op = Request::getCmd('op'); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $xoops->redirect("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name)); |
| 50 | 50 | } else { |
| 51 | 51 | $xoops->header(); |
| 52 | - echo $xoops->confirm(array('op' => 'del', 'categoryid' => $categoryObj->getVar('categoryid'), 'confirm' => 1, 'name' => $categoryObj->getVar('name')), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->getVar('name') . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); |
|
| 52 | + echo $xoops->confirm(array('op' => 'del', 'categoryid' => $categoryObj->getVar('categoryid'), 'confirm' => 1, 'name' => $categoryObj->getVar('name')), 'category.php', _AM_PUBLISHER_DELETECOL." '".$categoryObj->getVar('name')."'. <br /> <br />"._AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); |
|
| 53 | 53 | $xoops->footer(); |
| 54 | 54 | } |
| 55 | 55 | break; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | if ($uploader->fetchMedia($filename) && $uploader->upload()) { |
| 95 | 95 | $categoryObj->setVar('image', $uploader->getSavedFileName()); |
| 96 | 96 | } else { |
| 97 | - $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors()); |
|
| 97 | + $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR.$uploader->getErrors()); |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | } else { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | if (!$categoryObj->store()) { |
| 148 | - $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); |
|
| 148 | + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR.PublisherUtils::formatErrors($categoryObj->getErrors())); |
|
| 149 | 149 | } |
| 150 | 150 | // TODO : put this function in the category class |
| 151 | 151 | PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $categoryObj->setVar('parentid', $parentCat); |
| 164 | 164 | |
| 165 | 165 | if (!$categoryObj->store()) { |
| 166 | - $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); |
|
| 166 | + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR.PublisherUtils::formatErrors($categoryObj->getErrors())); |
|
| 167 | 167 | } |
| 168 | 168 | // TODO : put this function in the category class |
| 169 | 169 | PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | echo "<br />\n"; |
| 208 | 208 | echo "<form><div style=\"margin-bottom: 12px;\">"; |
| 209 | - echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> "; |
|
| 209 | + echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='"._AM_PUBLISHER_CATEGORY_CREATE."'> "; |
|
| 210 | 210 | //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; |
| 211 | 211 | echo "</div></form>"; |
| 212 | 212 | |
@@ -217,9 +217,9 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 219 | 219 | echo "<tr>"; |
| 220 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; |
|
| 221 | - echo "<td width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>"; |
|
| 222 | - echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 220 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCATEGORYNAME."</strong></td>"; |
|
| 221 | + echo "<td width='60' class='bg3' width='65' align='center'><strong>"._CO_PUBLISHER_WEIGHT."</strong></td>"; |
|
| 222 | + echo "<td width='60' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 223 | 223 | echo "</tr>"; |
| 224 | 224 | $totalCategories = $publisher->getCategoryHandler()->getCategoriesCount(0); |
| 225 | 225 | if (count($categoriesObj) > 0) { |
@@ -228,13 +228,13 @@ discard block |
||
| 228 | 228 | } |
| 229 | 229 | } else { |
| 230 | 230 | echo "<tr>"; |
| 231 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>"; |
|
| 231 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOCAT."</td>"; |
|
| 232 | 232 | echo "</tr>"; |
| 233 | 233 | $categoryid = '0'; |
| 234 | 234 | } |
| 235 | 235 | echo "</table>\n"; |
| 236 | 236 | $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory'); |
| 237 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 237 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 238 | 238 | echo "<br />"; |
| 239 | 239 | PublisherUtils::closeCollapsableBar('createdcategories', 'createdcategoriesicon'); |
| 240 | 240 | echo "<br>"; |
@@ -251,11 +251,11 @@ discard block |
||
| 251 | 251 | $description = $categoryObj->getVar('description'); |
| 252 | 252 | if (!XoopsLocale::isMultiByte()) { |
| 253 | 253 | if (strlen($description) >= 100) { |
| 254 | - $description = substr($description, 0, (100 - 1)) . "..."; |
|
| 254 | + $description = substr($description, 0, (100 - 1))."..."; |
|
| 255 | 255 | } |
| 256 | 256 | } |
| 257 | - $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->getVar('categoryid') . "&parentid=" . $categoryObj->getVar('parentid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>"; |
|
| 258 | - $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>"; |
|
| 257 | + $modify = "<a href='category.php?op=mod&categoryid=".$categoryObj->getVar('categoryid')."&parentid=".$categoryObj->getVar('parentid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif' title='"._AM_PUBLISHER_EDITCOL."' alt='"._AM_PUBLISHER_EDITCOL."' /></a>"; |
|
| 258 | + $delete = "<a href='category.php?op=del&categoryid=".$categoryObj->getVar('categoryid')."'><img src='".PUBLISHER_URL."/images/links/delete.png' title='"._AM_PUBLISHER_DELETECOL."' alt='"._AM_PUBLISHER_DELETECOL."' /></a>"; |
|
| 259 | 259 | |
| 260 | 260 | $spaces = ''; |
| 261 | 261 | for ($j = 0; $j < $level; ++$j) { |
@@ -263,8 +263,8 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | echo "<tr>"; |
| 266 | - echo "<td class='even' align='left'>" . $spaces . "<a href='" . PUBLISHER_URL . "/category.php?categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/subcat.gif' alt='' /> " . $categoryObj->getVar('name') . "</a></td>"; |
|
| 267 | - echo "<td class='even' align='center'>" . $categoryObj->getVar('weight') . "</td>"; |
|
| 266 | + echo "<td class='even' align='left'>".$spaces."<a href='".PUBLISHER_URL."/category.php?categoryid=".$categoryObj->getVar('categoryid')."'><img src='".PUBLISHER_URL."/images/links/subcat.gif' alt='' /> ".$categoryObj->getVar('name')."</a></td>"; |
|
| 267 | + echo "<td class='even' align='center'>".$categoryObj->getVar('weight')."</td>"; |
|
| 268 | 268 | echo "<td class='even' align='center'> $modify $delete </td>"; |
| 269 | 269 | echo "</tr>"; |
| 270 | 270 | $subCategoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoryObj->getVar('categoryid')); |
@@ -333,26 +333,26 @@ discard block |
||
| 333 | 333 | |
| 334 | 334 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 335 | 335 | echo "<tr>"; |
| 336 | - echo "<td width='60' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATID . "</strong></td>"; |
|
| 337 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATCOLNAME . "</strong></td>"; |
|
| 338 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_SUBDESCRIPT . "</strong></td>"; |
|
| 339 | - echo "<td width='60' class='bg3' align='right'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 336 | + echo "<td width='60' class='bg3' align='left'><strong>"._AM_PUBLISHER_CATID."</strong></td>"; |
|
| 337 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_CATCOLNAME."</strong></td>"; |
|
| 338 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_SUBDESCRIPT."</strong></td>"; |
|
| 339 | + echo "<td width='60' class='bg3' align='right'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 340 | 340 | echo "</tr>"; |
| 341 | 341 | if ($totalsubs > 0) { |
| 342 | 342 | /* @var $subcat PublisherCategory */ |
| 343 | 343 | foreach ($subcatsObj as $subcat) { |
| 344 | - $modify = "<a href='category.php?op=mod&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_MODIFY . "' alt='" . _AM_PUBLISHER_MODIFY . "' /></a>"; |
|
| 345 | - $delete = "<a href='category.php?op=del&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETE . "' alt='" . _AM_PUBLISHER_DELETE . "' /></a>"; |
|
| 344 | + $modify = "<a href='category.php?op=mod&categoryid=".$subcat->getVar('categoryid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_MODIFY."' alt='"._AM_PUBLISHER_MODIFY."' /></a>"; |
|
| 345 | + $delete = "<a href='category.php?op=del&categoryid=".$subcat->getVar('categoryid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETE."' alt='"._AM_PUBLISHER_DELETE."' /></a>"; |
|
| 346 | 346 | echo "<tr>"; |
| 347 | - echo "<td class='head' align='left'>" . $subcat->getVar('categoryid') . "</td>"; |
|
| 348 | - echo "<td class='even' align='left'><a href='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/category.php?categoryid=" . $subcat->getVar('categoryid') . "&parentid=" . $subcat->getVar('parentid'). "'>" . $subcat->getVar('name') . "</a></td>"; |
|
| 349 | - echo "<td class='even' align='left'>" . $subcat->getVar('description') . "</td>"; |
|
| 347 | + echo "<td class='head' align='left'>".$subcat->getVar('categoryid')."</td>"; |
|
| 348 | + echo "<td class='even' align='left'><a href='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/category.php?categoryid=".$subcat->getVar('categoryid')."&parentid=".$subcat->getVar('parentid')."'>".$subcat->getVar('name')."</a></td>"; |
|
| 349 | + echo "<td class='even' align='left'>".$subcat->getVar('description')."</td>"; |
|
| 350 | 350 | echo "<td class='even' align='right'> {$modify} {$delete} </td>"; |
| 351 | 351 | echo "</tr>"; |
| 352 | 352 | } |
| 353 | 353 | } else { |
| 354 | 354 | echo "<tr>"; |
| 355 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOSUBCAT . "</td>"; |
|
| 355 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOSUBCAT."</td>"; |
|
| 356 | 356 | echo "</tr>"; |
| 357 | 357 | } |
| 358 | 358 | echo "</table>\n"; |
@@ -369,28 +369,28 @@ discard block |
||
| 369 | 369 | $allcats = $publisher->getCategoryHandler()->getObjects(null, true); |
| 370 | 370 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 371 | 371 | echo "<tr>"; |
| 372 | - echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; |
|
| 373 | - echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCOLNAME . "</strong></td>"; |
|
| 374 | - echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMDESC . "</strong></td>"; |
|
| 375 | - echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; |
|
| 376 | - echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; |
|
| 372 | + echo "<td width='40' class='bg3' align='center'><strong>"._AM_PUBLISHER_ITEMID."</strong></td>"; |
|
| 373 | + echo "<td width='20%' class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMCOLNAME."</strong></td>"; |
|
| 374 | + echo "<td class='bg3' align='left'><strong>"._AM_PUBLISHER_ITEMDESC."</strong></td>"; |
|
| 375 | + echo "<td width='90' class='bg3' align='center'><strong>"._AM_PUBLISHER_CREATED."</strong></td>"; |
|
| 376 | + echo "<td width='60' class='bg3' align='center'><strong>"._AM_PUBLISHER_ACTION."</strong></td>"; |
|
| 377 | 377 | echo "</tr>"; |
| 378 | 378 | if ($totalitems > 0) { |
| 379 | 379 | for ($i = 0; $i < $totalitemsOnPage; ++$i) { |
| 380 | 380 | $categoryObj = $allcats[$itemsObj[$i]->getVar('categoryid')]; |
| 381 | - $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; |
|
| 382 | - $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . \XoopsBaseConfig::get('url') . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; |
|
| 381 | + $modify = "<a href='item.php?op=mod&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/edit.gif' title='"._AM_PUBLISHER_EDITITEM."' alt='"._AM_PUBLISHER_EDITITEM."' /></a>"; |
|
| 382 | + $delete = "<a href='item.php?op=del&itemid=".$itemsObj[$i]->getVar('itemid')."'><img src='".\XoopsBaseConfig::get('url')."/modules/".$publisher->getModule()->dirname()."/images/links/delete.png' title='"._AM_PUBLISHER_DELETEITEM."' alt='"._AM_PUBLISHER_DELETEITEM."'/></a>"; |
|
| 383 | 383 | echo "<tr>"; |
| 384 | - echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid'). "</td>"; |
|
| 385 | - echo "<td class='even' align='left'>" . $categoryObj->getVar('name') . "</td>"; |
|
| 386 | - echo "<td class='even' align='left'>" . $itemsObj[$i]->getitemLink() . "</td>"; |
|
| 387 | - echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub('s') . "</td>"; |
|
| 384 | + echo "<td class='head' align='center'>".$itemsObj[$i]->getVar('itemid')."</td>"; |
|
| 385 | + echo "<td class='even' align='left'>".$categoryObj->getVar('name')."</td>"; |
|
| 386 | + echo "<td class='even' align='left'>".$itemsObj[$i]->getitemLink()."</td>"; |
|
| 387 | + echo "<td class='even' align='center'>".$itemsObj[$i]->datesub('s')."</td>"; |
|
| 388 | 388 | echo "<td class='even' align='center'> $modify $delete </td>"; |
| 389 | 389 | echo "</tr>"; |
| 390 | 390 | } |
| 391 | 391 | } else { |
| 392 | 392 | echo "<tr>"; |
| 393 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>"; |
|
| 393 | + echo "<td class='head' align='center' colspan= '7'>"._AM_PUBLISHER_NOITEMS."</td>"; |
|
| 394 | 394 | echo "</tr>"; |
| 395 | 395 | } |
| 396 | 396 | echo "</table>\n"; |
@@ -398,8 +398,8 @@ discard block |
||
| 398 | 398 | $parentid = Request::getInt('parentid'); |
| 399 | 399 | $pagenav_extra_args = "op=mod&categoryid=$sel_cat&parentid=$parentid"; |
| 400 | 400 | $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $startitem, 'startitem', $pagenav_extra_args); |
| 401 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
| 402 | - echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=" . $sel_cat . "'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; |
|
| 401 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
| 402 | + echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=".$sel_cat."'\" value='"._AM_PUBLISHER_CREATEITEM."'> "; |
|
| 403 | 403 | echo "</div>"; |
| 404 | 404 | } |
| 405 | 405 | //end of fx2024 code |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once dirname(__DIR__) . '/include/common.php'; |
|
| 22 | +include_once dirname(__DIR__).'/include/common.php'; |
|
| 23 | 23 | |
| 24 | 24 | $publisher = Publisher::getInstance(); |
| 25 | 25 | $publisher->loadLanguage('admin'); |
@@ -33,27 +33,27 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | switch ($op) { |
| 35 | 35 | |
| 36 | - case "importExecute": |
|
| 36 | + case "importExecute": |
|
| 37 | 37 | |
| 38 | - $importfile = (isset($_POST['importfile'])) ? $_POST['importfile'] : 'nonselected'; |
|
| 39 | - $importfile_path = \XoopsBaseConfig::get('root-path') . "/modules/" . $publisher->getModule()->dirname() . "/admin/import/" . $importfile . ".php"; |
|
| 40 | - include_once $importfile_path; |
|
| 41 | - break; |
|
| 38 | + $importfile = (isset($_POST['importfile'])) ? $_POST['importfile'] : 'nonselected'; |
|
| 39 | + $importfile_path = \XoopsBaseConfig::get('root-path') . "/modules/" . $publisher->getModule()->dirname() . "/admin/import/" . $importfile . ".php"; |
|
| 40 | + include_once $importfile_path; |
|
| 41 | + break; |
|
| 42 | 42 | |
| 43 | - case "default": |
|
| 44 | - default: |
|
| 43 | + case "default": |
|
| 44 | + default: |
|
| 45 | 45 | |
| 46 | - $importfile = 'none'; |
|
| 46 | + $importfile = 'none'; |
|
| 47 | 47 | |
| 48 | - PublisherUtils::cpHeader(); |
|
| 49 | - //publisher_adminMenu(-1, _AM_PUBLISHER_IMPORT); |
|
| 48 | + PublisherUtils::cpHeader(); |
|
| 49 | + //publisher_adminMenu(-1, _AM_PUBLISHER_IMPORT); |
|
| 50 | 50 | |
| 51 | - PublisherUtils::openCollapsableBar('import', 'importicon', _AM_PUBLISHER_IMPORT_TITLE, _AM_PUBLISHER_IMPORT_INFO); |
|
| 51 | + PublisherUtils::openCollapsableBar('import', 'importicon', _AM_PUBLISHER_IMPORT_TITLE, _AM_PUBLISHER_IMPORT_INFO); |
|
| 52 | 52 | |
| 53 | - $module_handler = $xoops->getHandlerModule(); |
|
| 53 | + $module_handler = $xoops->getHandlerModule(); |
|
| 54 | 54 | |
| 55 | - // WF-Section |
|
| 56 | - /*$wfs_version = 0; |
|
| 55 | + // WF-Section |
|
| 56 | + /*$wfs_version = 0; |
|
| 57 | 57 | $moduleObj = $module_handler->getByDirname('wfsection'); |
| 58 | 58 | if ($moduleObj) { |
| 59 | 59 | $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
@@ -63,30 +63,30 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | } */ |
| 65 | 65 | |
| 66 | - // News |
|
| 67 | - $news_version = 0; |
|
| 68 | - $moduleObj = $xoops->getModuleByDirname('news'); |
|
| 69 | - if ($moduleObj) { |
|
| 70 | - $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
|
| 71 | - if (($from_module_version >= 1.1)) { |
|
| 72 | - $importfile_select_array["news"] = "News " . $from_module_version; |
|
| 73 | - $news_version = $from_module_version; |
|
| 66 | + // News |
|
| 67 | + $news_version = 0; |
|
| 68 | + $moduleObj = $xoops->getModuleByDirname('news'); |
|
| 69 | + if ($moduleObj) { |
|
| 70 | + $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
|
| 71 | + if (($from_module_version >= 1.1)) { |
|
| 72 | + $importfile_select_array["news"] = "News " . $from_module_version; |
|
| 73 | + $news_version = $from_module_version; |
|
| 74 | + } |
|
| 74 | 75 | } |
| 75 | - } |
|
| 76 | 76 | |
| 77 | - // Smartsection |
|
| 78 | - $smartsection_version = 0; |
|
| 79 | - $moduleObj = $xoops->getModuleByDirname('smartsection'); |
|
| 80 | - if ($moduleObj) { |
|
| 81 | - $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
|
| 82 | - if (($from_module_version >= 1.1)) { |
|
| 83 | - $importfile_select_array["smartsection"] = "Smartsection " . $from_module_version; |
|
| 84 | - $smartsection_version = $from_module_version; |
|
| 77 | + // Smartsection |
|
| 78 | + $smartsection_version = 0; |
|
| 79 | + $moduleObj = $xoops->getModuleByDirname('smartsection'); |
|
| 80 | + if ($moduleObj) { |
|
| 81 | + $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
|
| 82 | + if (($from_module_version >= 1.1)) { |
|
| 83 | + $importfile_select_array["smartsection"] = "Smartsection " . $from_module_version; |
|
| 84 | + $smartsection_version = $from_module_version; |
|
| 85 | + } |
|
| 85 | 86 | } |
| 86 | - } |
|
| 87 | 87 | |
| 88 | - // XF-Section |
|
| 89 | - /*$xfs_version = 0; |
|
| 88 | + // XF-Section |
|
| 89 | + /*$xfs_version = 0; |
|
| 90 | 90 | $moduleObj = $module_handler->getByDirname('xfsection'); |
| 91 | 91 | If ($moduleObj) { |
| 92 | 92 | $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
@@ -97,48 +97,48 @@ discard block |
||
| 97 | 97 | } */ |
| 98 | 98 | |
| 99 | 99 | |
| 100 | - if (isset($importfile_select_array) && count($importfile_select_array) > 0) { |
|
| 100 | + if (isset($importfile_select_array) && count($importfile_select_array) > 0) { |
|
| 101 | 101 | |
| 102 | - $sform = new Xoops\Form\ThemeForm(_AM_PUBLISHER_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF')); |
|
| 103 | - $sform->setExtra('enctype="multipart/form-data"'); |
|
| 102 | + $sform = new Xoops\Form\ThemeForm(_AM_PUBLISHER_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF')); |
|
| 103 | + $sform->setExtra('enctype="multipart/form-data"'); |
|
| 104 | 104 | |
| 105 | - // Partners to import |
|
| 106 | - $importfile_select = new Xoops\Form\Select('', 'importfile', $importfile); |
|
| 107 | - $importfile_select->addOptionArray($importfile_select_array); |
|
| 108 | - $importfile_tray = new Xoops\Form\ElementTray(_AM_PUBLISHER_IMPORT_SELECT_FILE, ' '); |
|
| 109 | - $importfile_tray->addElement($importfile_select); |
|
| 110 | - $importfile_tray->setDescription(_AM_PUBLISHER_IMPORT_SELECT_FILE_DSC); |
|
| 111 | - $sform->addElement($importfile_tray); |
|
| 105 | + // Partners to import |
|
| 106 | + $importfile_select = new Xoops\Form\Select('', 'importfile', $importfile); |
|
| 107 | + $importfile_select->addOptionArray($importfile_select_array); |
|
| 108 | + $importfile_tray = new Xoops\Form\ElementTray(_AM_PUBLISHER_IMPORT_SELECT_FILE, ' '); |
|
| 109 | + $importfile_tray->addElement($importfile_select); |
|
| 110 | + $importfile_tray->setDescription(_AM_PUBLISHER_IMPORT_SELECT_FILE_DSC); |
|
| 111 | + $sform->addElement($importfile_tray); |
|
| 112 | 112 | |
| 113 | - // Buttons |
|
| 114 | - $buttonTray = new Xoops\Form\ElementTray('', ''); |
|
| 115 | - $hidden = new Xoops\Form\Hidden('op', 'importExecute'); |
|
| 116 | - $buttonTray->addElement($hidden); |
|
| 113 | + // Buttons |
|
| 114 | + $buttonTray = new Xoops\Form\ElementTray('', ''); |
|
| 115 | + $hidden = new Xoops\Form\Hidden('op', 'importExecute'); |
|
| 116 | + $buttonTray->addElement($hidden); |
|
| 117 | 117 | |
| 118 | - $buttonImport = new Xoops\Form\Button('', '', _AM_PUBLISHER_IMPORT, 'submit'); |
|
| 119 | - $buttonImport->setExtra('onclick="this.form.elements.op.value=\'importExecute\'"'); |
|
| 120 | - $buttonTray->addElement($buttonImport); |
|
| 118 | + $buttonImport = new Xoops\Form\Button('', '', _AM_PUBLISHER_IMPORT, 'submit'); |
|
| 119 | + $buttonImport->setExtra('onclick="this.form.elements.op.value=\'importExecute\'"'); |
|
| 120 | + $buttonTray->addElement($buttonImport); |
|
| 121 | 121 | |
| 122 | - $buttonCancel = new Xoops\Form\Button('', '', _AM_PUBLISHER_CANCEL, 'button'); |
|
| 123 | - $buttonCancel->setExtra('onclick="history.go(-1)"'); |
|
| 124 | - $buttonTray->addElement($buttonCancel); |
|
| 122 | + $buttonCancel = new Xoops\Form\Button('', '', _AM_PUBLISHER_CANCEL, 'button'); |
|
| 123 | + $buttonCancel->setExtra('onclick="history.go(-1)"'); |
|
| 124 | + $buttonTray->addElement($buttonCancel); |
|
| 125 | 125 | |
| 126 | - $sform->addElement($buttonTray); |
|
| 127 | - /*$sform->addElement(new Xoops\Form\Hidden('xfs_version', $xfs_version)); |
|
| 126 | + $sform->addElement($buttonTray); |
|
| 127 | + /*$sform->addElement(new Xoops\Form\Hidden('xfs_version', $xfs_version)); |
|
| 128 | 128 | $sform->addElement(new Xoops\Form\Hidden('wfs_version', $wfs_version));*/ |
| 129 | - $sform->addElement(new Xoops\Form\Hidden('news_version', $news_version)); |
|
| 130 | - $sform->addElement(new Xoops\Form\Hidden('smartsection_version', $smartsection_version)); |
|
| 131 | - $sform->display(); |
|
| 132 | - unset($hidden); |
|
| 133 | - } else { |
|
| 134 | - echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_PUBLISHER_IMPORT_NO_MODULE . "</span>"; |
|
| 135 | - } |
|
| 129 | + $sform->addElement(new Xoops\Form\Hidden('news_version', $news_version)); |
|
| 130 | + $sform->addElement(new Xoops\Form\Hidden('smartsection_version', $smartsection_version)); |
|
| 131 | + $sform->display(); |
|
| 132 | + unset($hidden); |
|
| 133 | + } else { |
|
| 134 | + echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_PUBLISHER_IMPORT_NO_MODULE . "</span>"; |
|
| 135 | + } |
|
| 136 | 136 | |
| 137 | - // End of collapsable bar |
|
| 137 | + // End of collapsable bar |
|
| 138 | 138 | |
| 139 | - PublisherUtils::closeCollapsableBar('import', 'importicon'); |
|
| 139 | + PublisherUtils::closeCollapsableBar('import', 'importicon'); |
|
| 140 | 140 | |
| 141 | - break; |
|
| 141 | + break; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | $xoops->footer(); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . "/admin_header.php"; |
|
| 22 | +include_once __DIR__."/admin_header.php"; |
|
| 23 | 23 | $xoops = Xoops::getInstance(); |
| 24 | 24 | |
| 25 | 25 | $op = 'none'; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | case "importExecute": |
| 37 | 37 | |
| 38 | 38 | $importfile = (isset($_POST['importfile'])) ? $_POST['importfile'] : 'nonselected'; |
| 39 | - $importfile_path = \XoopsBaseConfig::get('root-path') . "/modules/" . $publisher->getModule()->dirname() . "/admin/import/" . $importfile . ".php"; |
|
| 39 | + $importfile_path = \XoopsBaseConfig::get('root-path')."/modules/".$publisher->getModule()->dirname()."/admin/import/".$importfile.".php"; |
|
| 40 | 40 | include_once $importfile_path; |
| 41 | 41 | break; |
| 42 | 42 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | if ($moduleObj) { |
| 70 | 70 | $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
| 71 | 71 | if (($from_module_version >= 1.1)) { |
| 72 | - $importfile_select_array["news"] = "News " . $from_module_version; |
|
| 72 | + $importfile_select_array["news"] = "News ".$from_module_version; |
|
| 73 | 73 | $news_version = $from_module_version; |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | if ($moduleObj) { |
| 81 | 81 | $from_module_version = round($moduleObj->getVar('version') / 100, 2); |
| 82 | 82 | if (($from_module_version >= 1.1)) { |
| 83 | - $importfile_select_array["smartsection"] = "Smartsection " . $from_module_version; |
|
| 83 | + $importfile_select_array["smartsection"] = "Smartsection ".$from_module_version; |
|
| 84 | 84 | $smartsection_version = $from_module_version; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $sform->display(); |
| 132 | 132 | unset($hidden); |
| 133 | 133 | } else { |
| 134 | - echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_PUBLISHER_IMPORT_NO_MODULE . "</span>"; |
|
| 134 | + echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">"._AM_PUBLISHER_IMPORT_NO_MODULE."</span>"; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | // End of collapsable bar |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | _PUBLISHER_WEIGHT => _CO_PUBLISHER_WEIGHT, |
| 100 | 100 | _PUBLISHER_ALLOWCOMMENTS => _CO_PUBLISHER_ALLOWCOMMENTS, |
| 101 | 101 | //_PUBLISHER_PERMISSIONS_ITEM => _CO_PUBLISHER_PERMISSIONS_ITEM, |
| 102 | - // _PUBLISHER_PARTIAL_VIEW => _CO_PUBLISHER_PARTIAL_VIEW, |
|
| 102 | + // _PUBLISHER_PARTIAL_VIEW => _CO_PUBLISHER_PARTIAL_VIEW, |
|
| 103 | 103 | _PUBLISHER_DOHTML => _CO_PUBLISHER_DOHTML, |
| 104 | 104 | _PUBLISHER_DOSMILEY => _CO_PUBLISHER_DOSMILEY, |
| 105 | 105 | _PUBLISHER_DOXCODE => _CO_PUBLISHER_DOXCODE, |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @version $Id$ |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include_once __DIR__ . '/admin_header.php'; |
|
| 22 | +include_once __DIR__.'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $xoops = Xoops::getInstance(); |
| 25 | 25 | $myts = \Xoops\Core\Text\Sanitizer::getInstance(); |