1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Added new iconpicker where appropriate. Some fixes in replaceConstant() and css/layout tweaks in admin->downloads

This commit is contained in:
CaMer0n
2009-07-17 02:28:49 +00:00
parent 7acd755d49
commit 3e75e6352f
6 changed files with 134 additions and 125 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $
| $Revision: 1.16 $ | $Revision: 1.17 $
| $Date: 2008-12-14 10:38:52 $ | $Date: 2009-07-17 02:28:49 $
| $Author: e107steved $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -50,7 +50,11 @@ $pst->page = array("download.php?create","download.php?cat"); // display preset
$pst->id = array("admin_downloads","admin_dl_cat"); $pst->id = array("admin_downloads","admin_dl_cat");
// ------------------------------- // -------------------------------
$rs = new form;
$frm = new e_form;
$download = new download; $download = new download;
require_once("auth.php"); require_once("auth.php");
$pst->save_preset(); // unique name(s) for the presets - comma separated. $pst->save_preset(); // unique name(s) for the presets - comma separated.
@@ -61,7 +65,8 @@ $pst->page = "download.php?create"; // display preset options on which page.
$pst->save_preset("admin_downloads"); // unique name for the preset $pst->save_preset("admin_downloads"); // unique name for the preset
*/ */
$rs = new form;
$sub_action = ''; $sub_action = '';
if (e_QUERY) if (e_QUERY)
{ {
@@ -538,7 +543,7 @@ exit;
class download class download
{ {
function show_existing_items($action, $sub_action, $id, $from, $amount) function show_existing_items($action, $sub_action, $id, $from, $amount)
{ {
@@ -1680,9 +1685,9 @@ class download
$ns->tablerender(DOWLAN_39, $text); $ns->tablerender(DOWLAN_39, $text);
} }
function create_category($sub_action, $id) function create_category($sub_action, $id)
{ {
global $sql, $tp, $admin_log; global $sql, $tp, $admin_log, $frm;
$download_category_name = $tp->toDB($_POST['download_category_name']); $download_category_name = $tp->toDB($_POST['download_category_name']);
$download_category_description = $tp->toDB($_POST['download_category_description']); $download_category_description = $tp->toDB($_POST['download_category_description']);
$download_category_icon = $tp->toDB($_POST['download_category_icon']); $download_category_icon = $tp->toDB($_POST['download_category_icon']);

View File

@@ -10,8 +10,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $
| $Revision: 1.30 $ | $Revision: 1.31 $
| $Date: 2009-07-16 02:55:18 $ | $Date: 2009-07-17 02:28:49 $
| $Author: e107coders $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -65,6 +65,7 @@ if($_POST)
if (strpos(e_QUERY, 'configure') === FALSE) if (strpos(e_QUERY, 'configure') === FALSE)
{ {
$men->menuScanMenus();
$text .= $men->menuRenderMessage(); $text .= $men->menuRenderMessage();
$text .= $men->menuSelectLayout(); $text .= $men->menuSelectLayout();
$text .= $men->menuVisibilityOptions(); $text .= $men->menuVisibilityOptions();

View File

@@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt) * Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id: iconpicker.php,v 1.3 2009-07-16 08:15:35 e107coders Exp $ * $Id: iconpicker.php,v 1.4 2009-07-17 02:28:49 e107coders Exp $
* *
* Image picker shortcode * Image picker shortcode
* *
@@ -55,7 +55,7 @@ function iconpicker_shortcode($parm)
foreach($folder as $icon) foreach($folder as $icon)
{ {
$filepath = $icon; $filepath = $icon;
$filepath_abs = $tp->replaceConstants($icon); $filepath_abs = $tp->replaceConstants($icon,"abs");
$icon_file = basename($filepath_abs); $icon_file = basename($filepath_abs);
$str = "<a href='#{$filepath}' title='{$filepath}' onclick=\"e107Helper.insertText('{$filepath}','{$name}','{$name}-iconpicker'); return false; \"><img class='icon picker list%%size%%' src='{$filepath_abs}' alt='{$icon_file}' /></a>"; $str = "<a href='#{$filepath}' title='{$filepath}' onclick=\"e107Helper.insertText('{$filepath}','{$name}','{$name}-iconpicker'); return false; \"><img class='icon picker list%%size%%' src='{$filepath_abs}' alt='{$icon_file}' /></a>";

View File

@@ -9,8 +9,8 @@
* Text processing and parsing functions * Text processing and parsing functions
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
* $Revision: 1.52 $ * $Revision: 1.53 $
* $Date: 2009-03-08 18:48:12 $ * $Date: 2009-07-17 02:28:49 $
* $Author: e107coders $ * $Author: e107coders $
* *
*/ */
@@ -1164,9 +1164,9 @@ class e_parse
// //
// only an ADMIN user can convert {e_ADMIN} // only an ADMIN user can convert {e_ADMIN}
// //
function replaceConstants($text, $nonrelative = "", $all = false) function replaceConstants($text, $mode = "", $all = false)
{ {
if($nonrelative != "") if($mode != "")
{ {
global $IMAGES_DIRECTORY, $PLUGINS_DIRECTORY, $FILES_DIRECTORY, $THEMES_DIRECTORY,$DOWNLOADS_DIRECTORY,$ADMIN_DIRECTORY; global $IMAGES_DIRECTORY, $PLUGINS_DIRECTORY, $FILES_DIRECTORY, $THEMES_DIRECTORY,$DOWNLOADS_DIRECTORY,$ADMIN_DIRECTORY;
$replace_relative = array("", $replace_relative = array("",
@@ -1177,7 +1177,22 @@ class e_parse
$FILES_DIRECTORY, $FILES_DIRECTORY,
$THEMES_DIRECTORY, $THEMES_DIRECTORY,
$DOWNLOADS_DIRECTORY); $DOWNLOADS_DIRECTORY);
$replace_absolute = array(SITEURL,
if($mode == "abs")
{
$replace_absolute = array("/",
e_IMAGE_ABS,
e_THEME_ABS,
e_IMAGE_ABS,
e_PLUGIN_ABS,
e_FILE_ABS,
e_THEME_ABS,
e_DOWNLOAD_ABS
);
}
elseif($mode == "full")
{
$replace_absolute = array(SITEURL,
SITEURL.$IMAGES_DIRECTORY, SITEURL.$IMAGES_DIRECTORY,
SITEURL.$THEMES_DIRECTORY, SITEURL.$THEMES_DIRECTORY,
SITEURL.$IMAGES_DIRECTORY, SITEURL.$IMAGES_DIRECTORY,
@@ -1185,13 +1200,17 @@ class e_parse
SITEURL.$FILES_DIRECTORY, SITEURL.$FILES_DIRECTORY,
SITEURL.$THEMES_DIRECTORY, SITEURL.$THEMES_DIRECTORY,
SITEURL.$DOWNLOADS_DIRECTORY); SITEURL.$DOWNLOADS_DIRECTORY);
}
$search = array("{e_BASE}","{e_IMAGE_ABS}","{e_THEME_ABS}","{e_IMAGE}","{e_PLUGIN}","{e_FILE}","{e_THEME}","{e_DOWNLOAD}"); $search = array("{e_BASE}","{e_IMAGE_ABS}","{e_THEME_ABS}","{e_IMAGE}","{e_PLUGIN}","{e_FILE}","{e_THEME}","{e_DOWNLOAD}");
if (ADMIN) if (ADMIN)
{ {
$replace_relative[] = $ADMIN_DIRECTORY; $replace_relative[] = $ADMIN_DIRECTORY;
$replace_absolute[] = SITEURL.$ADMIN_DIRECTORY; $replace_absolute[] = SITEURL.$ADMIN_DIRECTORY;
$search[] = "{e_ADMIN}"; $search[] = "{e_ADMIN}";
} }
if ($all) if ($all)
{ {
if (USER) if (USER)
@@ -1206,9 +1225,11 @@ class e_parse
} }
$search[] = "{USERID}"; $search[] = "{USERID}";
} }
$replace = ((string)$nonrelative == "full" ) ? $replace_absolute : $replace_relative;
$replace = ((string)$mode == "full" || (string)$mode=='abs' ) ? $replace_absolute : $replace_relative;
return str_replace($search,$replace,$text); return str_replace($search,$replace,$text);
} }
// $pattern = ($all ? "#\{([A-Za-z_0-9]*)\}#s" : "#\{(e_[A-Z]*)\}#s"); // $pattern = ($all ? "#\{([A-Za-z_0-9]*)\}#s" : "#\{(e_[A-Z]*)\}#s");
$pattern = ($all ? "#\{([A-Za-z_0-9]*)\}#s" : "#\{(e_[A-Z]*(?:_ABS){0,1})\}#s"); $pattern = ($all ? "#\{([A-Za-z_0-9]*)\}#s" : "#\{(e_[A-Z]*(?:_ABS){0,1})\}#s");
$text = preg_replace_callback($pattern, array($this, 'doReplace'), $text); $text = preg_replace_callback($pattern, array($this, 'doReplace'), $text);

View File

@@ -10,9 +10,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/menu_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/menu_class.php,v $
| $Revision: 1.2 $ | $Revision: 1.3 $
| $Date: 2009-07-16 19:19:07 $ | $Date: 2009-07-17 02:28:49 $
| $Author: e107steved $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -375,7 +375,7 @@ class menuManager{
if($sql->db_Insert("menus", " 0, '{$file['fname']}', 0, 0, 0, '' ,'{$file['path']}', ''")) if($sql->db_Insert("menus", " 0, '{$file['fname']}', 0, 0, 0, '' ,'{$file['path']}', ''"))
{ {
// Could do admin logging here - but probably not needed // Could do admin logging here - but probably not needed
$message .= "<b>".MENLAN_10." - ".$file['fname']."</b><br />"; $message .= MENLAN_10." - ".$file['fname']."<br />";
} }
} }
} }
@@ -402,11 +402,12 @@ class menuManager{
if (stristr($menustr, $menu_name) === FALSE) if (stristr($menustr, $menu_name) === FALSE)
{ {
$sql2->db_Delete("menus", "menu_name='$menu_name'"); $sql2->db_Delete("menus", "menu_name='$menu_name'");
$message .= "<b>".MENLAN_11." - ".$menu_name."</b><br />"; $message .= MENLAN_11." - ".$menu_name."<br />";
} }
} }
echo $message; $this->menuAddMessage($message, E_MESSAGE_INFO);
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $
| $Revision: 1.6 $ | $Revision: 1.7 $
| $Date: 2009-07-16 23:07:30 $ | $Date: 2009-07-17 02:28:49 $
| $Author: bugrain $ | $Author: e107coders $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -51,42 +51,39 @@ class adminDownload extends download
$eform = new e_form(); $eform = new e_form();
$filterColumns = ($pref['admin_download_disp'] ? explode("|",$pref['admin_download_disp']) : array("download_name","download_class")); $filterColumns = ($pref['admin_download_disp'] ? explode("|",$pref['admin_download_disp']) : array("download_name","download_class"));
if ($this->advancedSearchFields)
{
$showBasicSearch = " style='display:none'";
$showAdvancedSearch = "";
}
else
{
$showBasicSearch = "";
$showAdvancedSearch = " style='display:none'";
}
// Search field // Search field
$text .= " $text .= "
<form method='post' action='".e_SELF."'> <form method='post' action='".e_SELF."'>
<div id='download_search'{$showBasicSearch}> <div id='download_search'>
<fieldset> <fieldset>
<legend class='e-hideme'>".DOWLAN_194."</legend> <legend class='e-hideme'>".DOWLAN_194."</legend>
<table class='adminform'> <table class='adminform'>
<tr> <tr>
<td> <td>
<input class='tbox' type='text' name='download_search' size='50' value='{$this->searchField}' maxlength='50'/> Filter <input class='tbox' type='text' name='download_search' size='50' value='{$this->searchField}' maxlength='50'/> <a href='#download_search#download_advanced_search' class='e-swapit'>Advanced search</a>
</td> </td>
</tr> </tr>
</table> </table>";
// Filter should use ajax to filter the results automatically after typing.
/* $text .= "
<div class='buttons-bar center'> <div class='buttons-bar center'>
<button type='submit' class='update' name='download_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button> <button type='submit' class='update' name='download_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button>
<br/> <br/>
<a href='#download_search#download_advanced_search' class='e-swapit'>Advanced search</a>
</div> </div>";*/
$text.= "
</fieldset> </fieldset>
</div> </div>
</form> </form>
"; ";
// Advanced search fields // Advanced search fields {$showAdvancedSearch}
$text .= " $text .= "
<form method='post' action='".e_SELF."'> <form method='post' action='".e_SELF."'>
<div id='download_advanced_search'{$showAdvancedSearch}> <div id='download_advanced_search' class='e-hideme' >
<fieldset> <fieldset>
<legend class='e-hideme'>".DOWLAN_183."</legend> <legend class='e-hideme'>".DOWLAN_183."</legend>
<table class='adminform'> <table class='adminform'>
@@ -104,9 +101,7 @@ class adminDownload extends download
</tr> </tr>
<tr> <tr>
<td>".DOWLAN_11."</td> <td>".DOWLAN_11."</td>
<td> <td>".$this->getCategorySelectList($this->advancedSearchFields['category'], true, false, '&nbsp;', 'download_advanced_search[category]');
";
$text .= $this->getCategorySelectList($this->advancedSearchFields['category'], true, false, '&nbsp;', 'download_advanced_search[category]');
$text .= " </td> $text .= " </td>
<td>".DOWLAN_149."</td> <td>".DOWLAN_149."</td>
<td><input class='tbox' type='text' name='download_advanced_search[url]' size='50' value='{$this->advancedSearchFields['url']}' maxlength='50'/></td> <td><input class='tbox' type='text' name='download_advanced_search[url]' size='50' value='{$this->advancedSearchFields['url']}' maxlength='50'/></td>
@@ -141,11 +136,7 @@ class adminDownload extends download
</select> </select>
</td> </td>
<td>".DOWLAN_43."</td> <td>".DOWLAN_43."</td>
<td> <td>".$eform->uc_select('download_advanced_search[visible]', $this->advancedSearchFields['visible'], $this->userclassOptions)."</td>
";
$text .= $eform->uc_select('download_advanced_search[visible]', $this->advancedSearchFields['visible'], $this->userclassOptions);
$text .= "
</td>
</tr> </tr>
<tr> <tr>
<td>".DOWLAN_29."</td> <td>".DOWLAN_29."</td>
@@ -175,12 +166,13 @@ class adminDownload extends download
</tr> </tr>
</table> </table>
<div class='buttons-bar center'> <div class='buttons-bar center'>
<span class='f-left'><a href='#download_advanced_search#download_search' class='e-swapit'>Simple search</a></span>
<button type='submit' class='update' name='download_advanced_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button> <button type='submit' class='update' name='download_advanced_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button>
<br/>
<a href='#download_advanced_search#download_search' class='e-swapit'>Advanced search</a>
</div> </div>
</fieldset> </fieldset>
</div> </div>
</form>"; </form>";
return $text; return $text;
@@ -192,7 +184,14 @@ class adminDownload extends download
$eform = new e_form(); $eform = new e_form();
$sortorder = $subAction ? $subAction : $pref['download_order']; $sortorder = $subAction ? $subAction : $pref['download_order'];
$sortdirection = $id=="asc" ? "asc" : "desc"; $sortdirection = $id=="asc" ? "asc" : "desc";
$sort_link = $sortdirection == 'asc' ? 'desc' : 'asc'; $amount = 10;
if(!$sortorder)
{
$sortorder = "download_id";
}
$sort_link = $sortdirection == 'asc' ? 'desc' : 'asc';
$columnInfo = array( $columnInfo = array(
"download_id" => array("title"=>DOWLAN_67, "type"=>"", "width"=>"auto", "thclass"=>"center first", "url"=>e_SELF."?main.download_id.{$sort_link}.{$from}", "forced"=>true), "download_id" => array("title"=>DOWLAN_67, "type"=>"", "width"=>"auto", "thclass"=>"center first", "url"=>e_SELF."?main.download_id.{$sort_link}.{$from}", "forced"=>true),
"download_name" => array("title"=>DOWLAN_12, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_name.{$sort_link}.{$from}"), "download_name" => array("title"=>DOWLAN_12, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_name.{$sort_link}.{$from}"),
@@ -216,7 +215,7 @@ class adminDownload extends download
"options" => array("title"=>LAN_OPTIONS, "width"=>"auto", "thclass"=>"center last", "url"=>"", "forced"=>true) "options" => array("title"=>LAN_OPTIONS, "width"=>"auto", "thclass"=>"center last", "url"=>"", "forced"=>true)
); );
$filterColumns = ($user_pref['admin_download_disp']) ? $user_pref['admin_download_disp'] : array("download_id","download_name","download_class","options"); $filterColumns = ($user_pref['admin_download_disp']) ? $user_pref['admin_download_disp'] : array("download_name","download_class");
$query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc. download_category_id=d.download_category"; $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc. download_category_id=d.download_category";
if ($this->searchField) { if ($this->searchField) {
@@ -306,12 +305,14 @@ class adminDownload extends download
while ($row = $sql->db_Fetch()) while ($row = $sql->db_Fetch())
{ {
$mirror = strlen($row['download_mirror']) > 0; $mirror = strlen($row['download_mirror']) > 0;
$rowStyle = ($rowStyle == "odd") ? "even" : "odd";
$text .= "<tr class='{$rowStyle}'><td>".$row['download_id']."</td>"; $text .= "<tr>\n<td>".$row['download_id']."</td>\n";
// Display Chosen options // Display Chosen options
foreach($filterColumns as $disp) foreach($filterColumns as $disp)
{ {
switch ($disp) switch ($disp)
{ {
case "download_name" : case "download_name" :
@@ -1148,7 +1149,7 @@ class adminDownload extends download
global $download, $sql, $sql2, $rs, $ns, $tp, $pst; global $download, $sql, $sql2, $rs, $ns, $tp, $pst;
require_once(e_HANDLER."form_handler.php"); require_once(e_HANDLER."form_handler.php");
$eform = new e_form(); $frm = new e_form();
$text = $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); $text = $rs->form_open("post", e_SELF."?".e_QUERY, "myform");
$text .= "<div style='padding : 1px; ".ADMIN_WIDTH."; height : 200px; overflow : auto; margin-left: auto; margin-right: auto;'>"; $text .= "<div style='padding : 1px; ".ADMIN_WIDTH."; height : 200px; overflow : auto; margin-left: auto; margin-right: auto;'>";
@@ -1167,7 +1168,7 @@ class adminDownload extends download
$cat_array[$cat['download_category_parent']][] = $cat; $cat_array[$cat['download_category_parent']][] = $cat;
} }
$text .= " $text .= "
<table class='fborder' style='width:100%'> <table class='adminlist' id='core-admin-categories'>
<colgroup> <colgroup>
<col style='width:5%;'/> <col style='width:5%;'/>
<col style='width:55%;'/> <col style='width:55%;'/>
@@ -1175,12 +1176,15 @@ class adminDownload extends download
<col style='width:10%;'/> <col style='width:10%;'/>
<col style='width:20%;'/> <col style='width:20%;'/>
</colgroup> </colgroup>
<tr> <thead>
<td class='fcaption' colspan='2'>".DOWLAN_11."</td> <tr>
<td class='fcaption'>".DOWLAN_52."</td> <th colspan='2'>".DOWLAN_11."</th>
<td class='fcaption'>".LAN_ORDER."</td> <th>".DOWLAN_52."</th>
<td class='fcaption'>".LAN_OPTIONS."</td> <th>".LAN_ORDER."</th>
</tr>"; <th>".LAN_OPTIONS."</th>
</tr>
</thead>
<tbody>";
//Start displaying parent categories //Start displaying parent categories
@@ -1296,7 +1300,7 @@ class adminDownload extends download
} }
$text .= "</table></div>"; $text .= "</tbody></table></div>";
$text .= "<div style='text-align:center'> $text .= "<div style='text-align:center'>
<input class='button' type='submit' name='update_catorder' value='".LAN_UPDATE."'/> <input class='button' type='submit' name='update_catorder' value='".LAN_UPDATE."'/>
</div>"; </div>";
@@ -1337,83 +1341,60 @@ class adminDownload extends download
$preset = $pst->read_preset("admin_dl_cat"); // read preset values into array $preset = $pst->read_preset("admin_dl_cat"); // read preset values into array
extract($preset); extract($preset);
$eform_action = (isset($_POST['add_category'])) ? e_SELF."?cat" : e_SELF."?".e_QUERY; $frm_action = (isset($_POST['add_category'])) ? e_SELF."?cat" : e_SELF."?".e_QUERY;
$text = "<div style='text-align:center'> $text = "<div style='text-align:center'>
<form method='post' action='{$eform_action}' id='dlform'> <form method='post' action='{$frm_action}' id='dlform'>
<table style='".ADMIN_WIDTH."' class='fborder'> <table cellpadding='0' cellspacing='0' class='adminform'>
<colgroup> <colgroup span='2'>
<col style='width:30%'/> <col class='col-label' />
<col style='width:70%'/> <col class='col-control' />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<td>".DOWLAN_37.": </td> <td>".DOWLAN_37.": </td>
<td>"; <td>". $this->getCategorySelectList($main_category_parent, false, false, DOWLAN_40)."</td>
</tr>
$text .= $this->getCategorySelectList($main_category_parent, false, false, DOWLAN_40); <tr>
$text .= "</td></tr><tr> <td>".DOWLAN_12.": </td>
<td>".DOWLAN_12.": </td> <td><input class='tbox' type='text' name='download_category_name' size='40' value='$download_category_name' maxlength='100'/></td>
<td>
<input class='tbox' type='text' name='download_category_name' size='40' value='$download_category_name' maxlength='100'/>
</td>
</tr> </tr>
<tr> <tr>
<td>".DOWLAN_18.": </td> <td>".DOWLAN_18.": </td>
<td>"; <td>".$frm->bbarea('download_category_description',$download_category_description)."</td>
$text .= $eform->bbarea('download_category_description',$download_category_description);
$text .= "</td>
</tr> </tr>
<tr> <tr>
<td>".DOWLAN_41.": </td> <td>".DOWLAN_41.": </td>
<td> <td>".$frm->iconpicker('download_category_icon', $download_category_icon, DOWLAN_42) ."</td>
<input class='tbox' type='text' id='download_category_icon' name='download_category_icon' size='60' value='$download_category_icon' maxlength='100'/>
<input class='button' type ='button' style='cursor:pointer' size='30' value='".DOWLAN_42."' onclick='expandit(this)'/>
<div id='cat_icn' style='display:none;{head}' >";
while (list($key, $icon) = each($iconlist)) {
$text .= "<a href=\"javascript:insertext('$icon','download_category_icon','cat_icn')\"><img src='".e_IMAGE."icons/".$icon."' style='border:0' alt=''/></a> ";
}
reset($iconlist);
$text .= "
</div></td>
</tr> </tr>
<tr> <tr>
<td>".DOWLAN_147.": </td> <td>".DOWLAN_147.": </td>
<td> <td>".$frm->iconpicker('download_category_icon_empty', $download_category_icon_empty, DOWLAN_42) ."</td>
<input class='tbox' type='text' id='download_category_icon_empty' name='download_category_icon_empty' size='60' value='$download_category_icon_empty' maxlength='100'/> </tr>
<input class='button' type ='button' style='cursor:pointer' size='30' value='".DOWLAN_42."' onclick='expandit(this)'/>
<div id='cat_icn_empty' style='display:none;{head}' >";
while (list($key, $icon) = each($iconlist)) {
$text .= "<a href=\"javascript:insertext('$icon','download_category_icon_empty','cat_icn_empty')\"><img src='".e_IMAGE."icons/".$icon."' style='border:0' alt=''/></a> ";
}
$text .= "
</div></td>
</tr>
<tr> <tr>
<td>".DOWLAN_43.":<br/><span class='smalltext'>(".DOWLAN_44.")</span></td> <td>".DOWLAN_43.":<br/><span class='smalltext'>(".DOWLAN_44.")</span></td>
<td>".r_userclass("download_category_class", $download_category_class, 'off', 'public, nobody, member, admin, classes, language')." <td>".r_userclass("download_category_class", $download_category_class, 'off', 'public, nobody, member, admin, classes, language')."</td>
</td></tr>"; </tr>
$text .= " </tbody>
<tr style=''>
<td colspan='2' style='text-align:center' class='forumheader'>";
if ($id && $subAction == "edit" && !isset($_POST['add_category'])) {
$text .= "<input class='button' type='submit' name='add_category' value='".DOWLAN_46."'/> ";
} else {
$text .= "<input class='button' type='submit' name='add_category' value='".DOWLAN_45."'/>";
}
$text .= "</td>
</tr>
</tbody>
</table> </table>
<div class='buttons-bar center'>";
if ($id && $subAction == "edit" && !isset($_POST['add_category'])) {
$text .= "<input class='button' type='submit' name='add_category' value='".DOWLAN_46."'/> ";
} else {
$text .= "<input class='button' type='submit' name='add_category' value='".DOWLAN_45."'/>";
}
$text .= "</div>
</form> </form>
</div>"; </div>";
$ns->tablerender(DOWLAN_39, $text); $ns->tablerender(DOWLAN_39, $text);
} }