mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
content: template improvements, admin cleanup
This commit is contained in:
parent
dcec02e56e
commit
6096c325b9
@ -1039,8 +1039,8 @@ SC_END
|
||||
SC_BEGIN CONTENT_CAT_ICON
|
||||
global $row, $content_pref, $tp;
|
||||
$content_cat_icon_path_large = $tp -> replaceConstants($content_pref["content_cat_icon_path_large"]);
|
||||
//$content_cat_icon_path_small = $tp -> replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$caticon = $content_cat_icon_path_large.$row['content_icon'];
|
||||
$content_cat_icon_path_small = $tp -> replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$caticon = $content_cat_icon_path_small.$row['content_icon'];
|
||||
return ($row['content_icon'] ? "<img src='".$caticon."' alt='' style='vertical-align:middle' />" : " ");
|
||||
SC_END
|
||||
|
||||
@ -1062,8 +1062,7 @@ SC_END
|
||||
|
||||
SC_BEGIN CONTENT_SUBHEADING
|
||||
global $row, $tp;
|
||||
$row['content_subheading'] = $tp->toHTML($row['content_subheading'], TRUE, "");
|
||||
return ($row['content_subheading'] ? "[".$row['content_subheading']."]" : "");
|
||||
return $tp->toHTML($row['content_subheading'], TRUE, "");
|
||||
SC_END
|
||||
|
||||
SC_BEGIN CONTENT_LINK_ITEM
|
||||
@ -1151,7 +1150,7 @@ SC_END
|
||||
|
||||
SC_BEGIN CONTENT_ADMIN_SPACER
|
||||
global $CONTENT_ADMIN_SPACER;
|
||||
return $CONTENT_ADMIN_SPACER;
|
||||
return ($CONTENT_ADMIN_SPACER ? " " : "");
|
||||
SC_END
|
||||
|
||||
SC_BEGIN CONTENT_ADMIN_FORM_TARGET
|
||||
|
@ -12,9 +12,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_submit.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-07 12:57:43 $
|
||||
| $Author: mrpete $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+---------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -41,8 +41,14 @@ $eArrayStorage = new ArrayData();
|
||||
$e_wysiwyg = "content_text";
|
||||
global $tp;
|
||||
|
||||
$lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content.php';
|
||||
include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/lan_content.php');
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php');
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content.php');
|
||||
|
||||
if(is_readable(e_THEME.$pref['sitetheme']."/content/content_admin_template.php")){
|
||||
require_once(e_THEME.$pref['sitetheme']."/content/content_admin_template.php");
|
||||
}else{
|
||||
require_once(e_PLUGIN."content/templates/content_admin_template.php");
|
||||
}
|
||||
|
||||
if(e_QUERY){
|
||||
$qs = explode(".", e_QUERY);
|
||||
|
@ -12,8 +12,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-13 22:33:03 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+---------------------------------------------------------------+
|
||||
*/
|
||||
@ -507,8 +507,7 @@ class content{
|
||||
|
||||
function getCategoryTree($id, $parent, $classcheck=TRUE){
|
||||
//id : content_parent of an item
|
||||
global $plugintable, $datequery;
|
||||
global $agc;
|
||||
global $plugintable, $datequery, $agc;
|
||||
|
||||
if($parent){
|
||||
$agc = "";
|
||||
@ -670,9 +669,17 @@ class content{
|
||||
global $sqlcountitemsincat, $plugintable, $datequery;
|
||||
//$id : category content_id
|
||||
|
||||
$cachestring = md5($id."_".$datequery."_".e_CLASS_REGEXP);
|
||||
if($ret = getcachedvars("content_countcatitems_{$cachestring}"))
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
|
||||
if(!is_object($sqlcountitemsincat)){ $sqlcountitemsincat = new db; }
|
||||
$n = $sqlcountitemsincat -> db_Count($plugintable, "(*)", "WHERE content_class REGEXP '".e_CLASS_REGEXP."' AND content_parent='".intval($id)."' AND content_refer != 'sa' ".$datequery." ");
|
||||
|
||||
cachevars("content_countcatitems_{$cachestring}", $n);
|
||||
|
||||
return $n;
|
||||
}
|
||||
|
||||
@ -792,6 +799,12 @@ class content{
|
||||
function getAuthor($content_author) {
|
||||
global $sql, $plugintable, $datequery;
|
||||
|
||||
$cachestring = md5($content_author);
|
||||
if($ret = getcachedvars("content_getauthor_{$cachestring}"))
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
|
||||
if(is_numeric($content_author)){
|
||||
if(!$sql -> db_Select("user", "user_id, user_name, user_email", "user_id=$content_author")){
|
||||
$author_id = "0";
|
||||
@ -814,6 +827,7 @@ class content{
|
||||
}
|
||||
$getauthor = array($author_id, $author_name, $author_email, $content_author);
|
||||
}
|
||||
cachevars("content_getauthor_{$cachestring}", $getauthor);
|
||||
return $getauthor;
|
||||
}
|
||||
|
||||
@ -834,7 +848,8 @@ class content{
|
||||
}
|
||||
$mainparent = $this -> getMainParent( $newid );
|
||||
}
|
||||
return ($mainparent ? $mainparent : "0");
|
||||
$val = ($mainparent ? $mainparent : "0");
|
||||
return $val;
|
||||
}
|
||||
|
||||
|
||||
@ -1034,15 +1049,11 @@ class content{
|
||||
if(isset($content_pref["content_{$mode}_authoremail"]) && $authordetails[2]){
|
||||
if($authordetails[0] == "0"){
|
||||
if(isset($content_pref["content_{$mode}_authoremail_nonmember"]) && $content_pref["content_{$mode}_authoremail_nonmember"] && strpos($authordetails[2], "@") ){
|
||||
//$authorinfo = "<a href='mailto:".$authordetails[2]."'>".$authordetails[1]."</a>";
|
||||
|
||||
$authorinfo = preg_replace("#([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "<a rel='external' href='javascript:window.location=\"mai\"+\"lto:\"+\"\\1\"+\"@\"+\"\\2\";self.close();' onmouseover='window.status=\"mai\"+\"lto:\"+\"\\1\"+\"@\"+\"\\2\"; return true;' onmouseout='window.status=\"\";return true;'>".$authordetails[1]."</a>", $authordetails[2]);
|
||||
}else{
|
||||
$authorinfo = $authordetails[1];
|
||||
}
|
||||
}else{
|
||||
//$authorinfo = "<a href='mailto:".$authordetails[2]."'>".$authordetails[1]."</a>";
|
||||
|
||||
$authorinfo = preg_replace("#([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "<a rel='external' href='javascript:window.location=\"mai\"+\"lto:\"+\"\\1\"+\"@\"+\"\\2\";self.close();' onmouseover='window.status=\"mai\"+\"lto:\"+\"\\1\"+\"@\"+\"\\2\"; return true;' onmouseout='window.status=\"\";return true;'>".$authordetails[1]."</a>", $authordetails[2]);
|
||||
}
|
||||
}else{
|
||||
@ -1060,6 +1071,7 @@ class content{
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
//admin
|
||||
function popupHelp($text, $image="", $width="320", $title=""){
|
||||
//$image : full path to the image you want to show on screen (uses a default doc image)
|
||||
@ -1079,6 +1091,7 @@ class content{
|
||||
|
||||
return $popup;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
@ -29,5 +29,6 @@ if (!defined('CONTENT_ICON_CONTENTMANAGER')) { define("CONTENT_ICON_CONTENTMANAG
|
||||
if (!defined('CONTENT_ICON_CONTENTMANAGER_SMALL')) { define("CONTENT_ICON_CONTENTMANAGER_SMALL", "<img src='".$plugindir."images/manager_16.png' alt='".CONTENT_ICON_LAN_13."' title='".CONTENT_ICON_LAN_13."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDER_UP')) { define("CONTENT_ICON_ORDER_UP", "<img src='".$imagedir."up.png' alt='".CONTENT_ADMIN_ITEM_LAN_63."' title='".CONTENT_ADMIN_ITEM_LAN_63."' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDER_DOWN')) { define("CONTENT_ICON_ORDER_DOWN", "<img src='".$imagedir."down.png' alt='".CONTENT_ADMIN_ITEM_LAN_64."' title='".CONTENT_ADMIN_ITEM_LAN_64."' />"); }
|
||||
if (!defined('CONTENT_ICON_DETAILS')) { define("CONTENT_ICON_DETAILS", "<img src='".$imagedir."downloads_16.png' alt='".CONTENT_ICON_LAN_16."' title='".CONTENT_ICON_LAN_16."' style='border:0; cursor:pointer;' />"); }
|
||||
|
||||
?>
|
@ -12,8 +12,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_form_class.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-13 23:18:39 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+---------------------------------------------------------------+
|
||||
*/
|
||||
@ -1008,7 +1008,7 @@ class contentform{
|
||||
|
||||
|
||||
function manage_cat(){
|
||||
global $qs, $sql, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $stylespacer, $eArrayStorage, $CONTENT_ADMIN_CATEGORY_START, $CONTENT_ADMIN_CATEGORY_TABLE, $CONTENT_ADMIN_CATEGORY_END, $CONTENT_ADMIN_OPTIONS, $row, $catarray, $catid, $content_pref;
|
||||
global $qs, $sql, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $stylespacer, $eArrayStorage, $CONTENT_ADMIN_CATEGORY_START, $CONTENT_ADMIN_CATEGORY_TABLE, $CONTENT_ADMIN_CATEGORY_END, $CONTENT_ADMIN_OPTIONS, $row, $catarray, $catid, $content_pref, $CONTENT_ADMIN_SPACER;
|
||||
|
||||
$catarray = $aa -> getCategoryTree("", "", FALSE);
|
||||
$array = array_keys($catarray);
|
||||
@ -1028,6 +1028,7 @@ class contentform{
|
||||
$content_pref = $aa -> getContentPref($catarray[$catid][0]);
|
||||
$delete_heading = str_replace("'", "\'", $row['content_heading']);
|
||||
|
||||
$CONTENT_ADMIN_SPACER = ($row['content_parent']==0 ? TRUE : FALSE);
|
||||
$CONTENT_ADMIN_OPTIONS = "<a href='".e_SELF."?cat.edit.".$catid."'>".CONTENT_ICON_EDIT."</a>
|
||||
<input type='image' title='".CONTENT_ICON_LAN_1."' name='delete[cat_{$catid}]' src='".CONTENT_ICON_DELETE_BASE."' onclick=\"return jsconfirm('".$tp->toJS(CONTENT_ADMIN_JS_LAN_9."\\n\\n".CONTENT_ADMIN_JS_LAN_0."\\n\\n[".CONTENT_ADMIN_JS_LAN_6." ".$catid." : ".$delete_heading."]\\n\\n")."')\"/>";
|
||||
|
||||
@ -1041,7 +1042,7 @@ class contentform{
|
||||
}
|
||||
|
||||
function manager(){
|
||||
global $qs, $sql, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $stylespacer, $eArrayStorage, $CONTENT_ADMIN_MANAGER_START, $CONTENT_ADMIN_MANAGER_TABLE, $CONTENT_ADMIN_MANAGER_END, $catarray, $catid, $row, $pre;
|
||||
global $qs, $sql, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $content_pref, $stylespacer, $eArrayStorage, $CONTENT_ADMIN_MANAGER_START, $CONTENT_ADMIN_MANAGER_TABLE, $CONTENT_ADMIN_MANAGER_END, $catarray, $catid, $row, $pre, $CONTENT_ADMIN_SPACER;
|
||||
|
||||
$catarray = $aa -> getCategoryTree("", "", FALSE);
|
||||
$array = array_keys($catarray);
|
||||
@ -1057,6 +1058,8 @@ class contentform{
|
||||
$text .= "<div style='text-align:center;'>".CONTENT_ADMIN_CAT_LAN_9."</div>";
|
||||
}else{
|
||||
$row = $sql -> db_Fetch();
|
||||
$content_pref = $aa -> getContentPref($catarray[$catid][0]);
|
||||
$CONTENT_ADMIN_SPACER = ($row['content_parent']==0 ? TRUE : FALSE);
|
||||
$text .= $tp -> parseTemplate($CONTENT_ADMIN_MANAGER_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
}
|
||||
@ -1325,9 +1328,9 @@ class contentform{
|
||||
|
||||
|
||||
function show_order(){
|
||||
global $qs, $sql, $sql2, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $content_pref, $CONTENT_ADMIN_ORDER_START, $CONTENT_ADMIN_ORDER_TABLE, $CONTENT_ADMIN_ORDER_END, $CONTENT_ADMIN_ORDER_UPDOWN, $CONTENT_ADMIN_ORDER_SELECT, $stylespacer, $catarray, $catid, $CONTENT_ADMIN_ORDER_AMOUNT, $CONTENT_ADMIN_ORDER_CAT, $CONTENT_ADMIN_ORDER_CATALL, $CONTENT_ADMIN_BUTTON, $row;
|
||||
global $qs, $sql, $sql2, $ns, $rs, $aa, $plugintable, $plugindir, $tp, $content_shortcodes, $content_pref, $CONTENT_ADMIN_ORDER_START, $CONTENT_ADMIN_ORDER_TABLE, $CONTENT_ADMIN_ORDER_END, $CONTENT_ADMIN_ORDER_UPDOWN, $CONTENT_ADMIN_ORDER_SELECT, $stylespacer, $catarray, $catid, $CONTENT_ADMIN_ORDER_AMOUNT, $CONTENT_ADMIN_ORDER_CAT, $CONTENT_ADMIN_ORDER_CATALL, $CONTENT_ADMIN_BUTTON, $row, $CONTENT_ADMIN_SPACER;
|
||||
|
||||
if(!getperms("0")){ header("location:".e_SELF); exit; }
|
||||
//if(!getperms("0")){ header("location:".e_SELF); exit; }
|
||||
|
||||
$catarray = $aa -> getCategoryTree("", "", FALSE);
|
||||
$array = array_keys($catarray);
|
||||
@ -1365,9 +1368,9 @@ class contentform{
|
||||
//count items in category
|
||||
if(!is_object($sql2)){ $sql2 = new db; }
|
||||
$n = $sql2 -> db_Count($plugintable, "(*)", "WHERE content_parent='".intval($catid)."' AND content_refer != 'sa' ");
|
||||
if($n > 1){
|
||||
if($n > 1 || $row['content_parent'] == 0){
|
||||
$CONTENT_ADMIN_ORDER_CAT = "<a href='".e_SELF."?order.".$catarray[$catid][0].".".$catid."'>".CONTENT_ICON_ORDERCAT."</a>";
|
||||
$CONTENT_ADMIN_ORDER_CATALL = ($row['content_parent'] == 0 ? "<a href='".e_SELF."?order.".$catid."'>".CONTENT_ICON_ORDERALL."</a>" : "");
|
||||
$CONTENT_ADMIN_ORDER_CATALL = ($row['content_parent'] == 0 ? "<a href='".e_SELF."?order.".$catid."'>".CONTENT_ICON_ORDERALL."</a>" : " ");
|
||||
}
|
||||
$CONTENT_ADMIN_ORDER_AMOUNT = "(".($n == 1 ? $n." ".CONTENT_ADMIN_CAT_LAN_56 : $n." ".CONTENT_ADMIN_CAT_LAN_57).")";
|
||||
|
||||
@ -1393,6 +1396,7 @@ class contentform{
|
||||
$sel .= "</select>";
|
||||
$CONTENT_ADMIN_ORDER_SELECT = $sel;
|
||||
|
||||
$CONTENT_ADMIN_SPACER = ($row['content_parent']==0 ? TRUE : FALSE);
|
||||
$text .= $tp -> parseTemplate($CONTENT_ADMIN_ORDER_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
}
|
||||
@ -1442,7 +1446,7 @@ class contentform{
|
||||
if($ccheck != 1 && $ccheck != 0){
|
||||
$up = "<a href='".e_SELF."?".$qrystring.".inc.".$cid."-".$corder."'>".CONTENT_ICON_ORDER_UP."</a> ";
|
||||
}else{
|
||||
$up = " ";
|
||||
$up = " ";
|
||||
}
|
||||
//down arrow
|
||||
if($ccheck != $content_total){
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:07 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -42,6 +42,7 @@ define("CONTENT_ICON_LAN_12", "order items in main parent");
|
||||
define("CONTENT_ICON_LAN_13", "personal admin");
|
||||
define("CONTENT_ICON_LAN_14", "personal content manager");
|
||||
define("CONTENT_ICON_LAN_15", "view");
|
||||
define("CONTENT_ICON_LAN_16", "view details");
|
||||
|
||||
define("CONTENT_ADMIN_DATE_LAN_0", "January");
|
||||
define("CONTENT_ADMIN_DATE_LAN_1", "February");
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_admin.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:08 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -20,6 +20,11 @@ define("CONTENT_PLUGIN_LAN_6", "Content Management Plugin table structure update
|
||||
|
||||
define("CONTENT_LATEST_LAN_1", "Submitted Content Items:");
|
||||
|
||||
define("CONTENT_TEMPLATE_LAN_1", "id:");
|
||||
define("CONTENT_TEMPLATE_LAN_2", "author:");
|
||||
define("CONTENT_TEMPLATE_LAN_3", "view item:");
|
||||
define("CONTENT_TEMPLATE_LAN_4", "subheading:");
|
||||
|
||||
define("CONTENT_ADMIN_CAT_LAN_0", "create content category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_1", "edit content category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_2", "heading");
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_help.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:08 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -14,7 +14,7 @@ define("CONTENT_ADMIN_HELP_1", "Content Management Help Area");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEM_1", "<i>if you have not yet added main parent categories, please do so at the <a href='".e_SELF."?cat.create'>Create New Category</a> page.</i><br /><br /><b>category</b><br />select a category from the pull-down menu to manage content for that category.<br /><br />Selecting a main parent from the pull-down menu will show all content items in that main category.<br />Selecting a subcategory will show only those content items in the specified subcategory.<br /><br />You can also use the menu on the right to view all content items for a specified category.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEM_2", "<b>first letters</b><br />if multiple content item starting letters of the content_heading are present, you will see buttons to select only those content items starting with that letter. Selecting the 'all' button will show a list containing all content items in this category.<br /><br /><b>detailed list</b><br />You see a list of all content items with their id, icon, author, heading [subheading] and options.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_EDIT." : edit the content item<br />".CONTENT_ICON_DELETE." : delete the content item<br />");
|
||||
define("CONTENT_ADMIN_HELP_ITEM_2", "<b>first letters</b><br />if multiple content item starting letters of the content_heading are present, you will see buttons to select only those content items starting with that letter. Selecting the 'all' button will show a list containing all content items in this category.<br /><br /><b>detailed list</b><br />You see a list of all content items with their id, icon, author, heading [subheading] and options.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_EDIT." : edit the content item<br />".CONTENT_ICON_DELETE." : delete the content item<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEMEDIT_1", "<b>edit form</b><br />you can now edit all information for this content item and submit your changes.<br /><br />If you need to change the category for this content item, please do so first. After you have selected the correct category, change or add any fields present, before you submit the changes.");
|
||||
|
||||
@ -22,35 +22,28 @@ define("CONTENT_ADMIN_HELP_ITEMCREATE_1", "<b>category</b><br />please select a
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEMCREATE_2", "<b>creation form</b><br />you can now provide all information for this content item and submit it.<br /><br />Be aware of the fact that different main parent categories can have a different set of preferences; different fields can be available for you to fill in. Therefore you always need to select a category first before you fill in other fields!");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_1", "<i>this page shows all categories and subcategories present.</i><br /><br /><b>detailed list</b><br />You see a list of all subcategories with their id, icon, author, category [subheading] and options.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_EDIT." : edit the category<br />".CONTENT_ICON_DELETE." : delete the category<br />");
|
||||
define("CONTENT_ADMIN_HELP_CAT_1", "<i>this page shows all categories and subcategories present.</i><br /><br /><b>detailed list</b><br />You see a list of all subcategories with their id, icon, author, category [subheading] and options.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_EDIT." : edit the category<br />".CONTENT_ICON_DELETE." : delete the category<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_2", "<i>this page allows you to create a new category</i><br /><br />Always choose a parent category before you fill in the other fields !<br /><br />This must be done, because some unique category preferences need to be loaded in the system.<br /><br />By default the category page is shown to create a new main category.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_3", "<i>this page shows the category edit form.</i><br /><br /><b>category edit form</b><br />you can now edit all information for this (sub)category and submit your changes.<br /><br />If you want to change the parent location for this category, please do so first. After you have set the correct category edit all other fields.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_1", "<i>this page shows all categories and subcategories present.</i><br /><br /><b>detailed list</b><br />you see the category id and the category name. also you see several options to manage the order of the categories.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_ORDERALL." : manage the global order of content item regardless of category.<br />".CONTENT_ICON_ORDERCAT." : manage the order of content items in the specific category.<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this each parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
define("CONTENT_ADMIN_HELP_ORDER_1", "<i>this page shows all categories and subcategories present.</i><br /><br /><b>detailed list</b><br />you see the category id and the category name. also you see several options to manage the order of the categories.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_ORDERALL." : manage the global order of content item regardless of category.<br />".CONTENT_ICON_ORDERCAT." : manage the order of content items in the specific category.<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this each parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_2", "<i>this page shows all content items from the category you have selected.</i><br /><br /><b>detailed list</b><br />you see the content id, the content author and the content heading. also you see several options to manage the order of the content items.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this main parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
define("CONTENT_ADMIN_HELP_ORDER_2", "<i>this page shows all content items from the category you have selected.</i><br /><br /><b>detailed list</b><br />you see the content id, the content author and the content heading. also you see several options to manage the order of the content items.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this main parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_3", "<i>this page shows all content items from main parent category you have selected.</i><br /><br /><b>detailed list</b><br />you see the content id, the content author and the content heading. also you see several options to manage the order of the content items.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_ORDER_UP." : the up button allow you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allow you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this main parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
define("CONTENT_ADMIN_HELP_ORDER_3", "<i>this page shows all content items from main parent category you have selected.</i><br /><br /><b>detailed list</b><br />you see the content id, the content author and the content heading. also you see several options to manage the order of the content items.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the content item<br />".CONTENT_ICON_ORDER_UP." : the up button allow you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allow you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this main parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_1", "On this page you can select a main parent category to set options for, or you can choose to edit the default preferences.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_OPTIONS." : edit the options<br /><br /><br />
|
||||
The default preferences are only used when you create a new main parent. So when you create a new main parent these default preferences will be stored. You can change these to make sure newly created main parents already have a certain set of features present.
|
||||
<br /><br />
|
||||
Each main parent has its own set of options, which are unique to that specific main parent category<br /><br />
|
||||
<b>inherit</b><br />The inherit checkboxes allow you to override the main parents individual options, and use the default preferences for the checked main parents.");
|
||||
define("CONTENT_ADMIN_HELP_OPTION_1", "On this page you can select a main parent category to set options for, or you can choose to edit the default preferences.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_USER." : link to the author profile<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_OPTIONS." : edit the options<br /><br /><br />The default preferences are only used when you create a new main parent. So when you create a new main parent these default preferences will be stored. You can change these to make sure newly created main parents already have a certain set of features present.<br /><br />Each main parent has its own set of options, which are unique to that specific main parent category<br /><br /><b>inherit</b><br />The inherit checkboxes allow you to override the main parents individual options, and use the default preferences for the checked main parents.");
|
||||
|
||||
//define("CONTENT_ADMIN_HELP_OPTION_2", "<i>this page shows the options you can set for this main parent. Each main parent has their own specific set of options, so be sure to set them all correctly.</i><br /><br />");
|
||||
//<b>default values</b><br />By default all values are present and already updated in the preferences when you view this page, but change any setting to your own standards.<br /><br />
|
||||
define("CONTENT_ADMIN_HELP_MANAGER_1", "On this page you see a list of all categories. You can manage the 'personal content manager' for each category by clicking the icon.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_CONTENTMANAGER_SMALL." : edit the personal content managers<br />");
|
||||
define("CONTENT_ADMIN_HELP_MANAGER_1", "On this page you see a list of all categories. You can manage the 'personal content manager' for each category by clicking the icon.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_LINK." : link to the category<br />".CONTENT_ICON_CONTENTMANAGER_SMALL." : edit the personal content managers<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_MANAGER_2", "<i>on this page you can assign the userclasses to the selected category you have clicked</i><br /><br /><b>personal manager</b><br />You can define classes for the different types of personal managers. currently there are three types of managers you can define:<br /><br />approve submitted: users with this class are able to approve submitted content items<br /><br />personal manager: users with this class are able to manage only their personal content items<br /><br />category manager: users with this class are able to manage all content items in this category<br />");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_HELP_SUBMIT_1", "<i>On this page you see a list of all content items that were submitted by users.</i><br /><br /><b>detailed list</b><br />You see a list of these content items with their id, icon, main parent, heading [subheading], author and options.<br /><br /><b>options</b><br />you can post or delete a content item using the buttons shown.");
|
||||
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_1", "this page allows you to set options for the admin create item page.<br /><br />You can define which sections are available when an admin (or personal content manager) creates a new content item<br /><br /><b>custom data tags</b><br />you can allow a user or admin to add optional fields to the content item by using these custom data tags. These optional fields are blank key=>value pairs. For instance: you could add a key field for 'photographer' and provide the value field with 'all photos by me'. Both these key and value fields are empty textfields which will be present in the create form.<br /><br /><b>preset data tags</b><br />apart from the custom data tags, you can provide preset data tags. The difference is that in preset data tags, the key field already is given and the user only needs to provide the value field for the preset. In the same example as above 'photographer' can be predefined, and the user needs to provide 'all photos by me'. You can choose the element type by selecting one option in the selectbox. In the popup window, you can provide all the information for the preset data tag.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_2", "The Submit Options have affect on the user submit form for content items.<br /><br />You can define which sections are available for a user when submitting a content item.<br /><br />".CONTENT_ADMIN_OPT_LAN_11.":<br />".CONTENT_ADMIN_OPT_LAN_12."");
|
||||
|
@ -11,16 +11,14 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_admin_template.php,v $
|
||||
| $Revision: 1.1 $
|
||||
| $Date: 2007-01-13 22:33:03 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-14 11:59:11 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$stylespacer = "style='border:0; height:20px;'";
|
||||
|
||||
// ##### CONTENT OPTIONS --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_START)){
|
||||
$CONTENT_ADMIN_OPTIONS_START = "
|
||||
@ -28,39 +26,56 @@ if(!isset($CONTENT_ADMIN_OPTIONS_START)){
|
||||
".$rs -> form_open("post", e_SELF."?option", "optionsform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_24."</td>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:15%'>".CONTENT_ADMIN_CAT_LAN_18."</td>
|
||||
<td class='fcaption' style='width:65%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
<td class='fcaption' style='width:10%'>".CONTENT_ADMIN_OPT_LAN_167."</td>
|
||||
<td class='fcaption' style='width:1%;'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:74%; text-align:left;'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_OPT_LAN_167."</td>
|
||||
</tr>
|
||||
<tr><td colspan='5' $stylespacer></td></tr>
|
||||
<tr><td colspan='5' style='border:0; height:20px;'></td></tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; text-align:left'></td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center'></td>
|
||||
<td class='forumheader3' style='width:15%'></td>
|
||||
<td class='forumheader3' style='width:65%; white-space:nowrap;'>".CONTENT_ADMIN_OPT_LAN_1."</td>
|
||||
<td class='forumheader3' style='width:1%;'></td>
|
||||
<td class='forumheader3' style='width:5%;'></td>
|
||||
<td class='forumheader3' style='width:74%; white-space:nowrap;'>".CONTENT_ADMIN_OPT_LAN_1."</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<a href='".e_SELF."?option.default'>".CONTENT_ICON_OPTIONS."</a>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%'></td>
|
||||
<td class='forumheader3' style='width:10%;'></td>
|
||||
</tr>
|
||||
<tr><td colspan='6' $stylespacer></td></tr>";
|
||||
<tr><td colspan='5' style='border:0; height:20px;'></td></tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_TABLE)){
|
||||
$CONTENT_ADMIN_OPTIONS_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; text-align:left'>{CONTENT_ID}</td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='forumheader3' style='width:15%'>{CONTENT_AUTHOR}</td>
|
||||
<td class='forumheader3' style='width:65%;'>
|
||||
{CONTENT_LINK_CATEGORY} {CONTENT_HEADING} {CONTENT_SUBHEADING}
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='forumheader3' style='width:74%;'>
|
||||
{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_LINK_OPTION}
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_INHERIT}
|
||||
</td>
|
||||
</tr>";
|
||||
@ -68,8 +83,8 @@ if(!isset($CONTENT_ADMIN_OPTIONS_TABLE)){
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_END)){
|
||||
$CONTENT_ADMIN_OPTIONS_END = "
|
||||
<tr>
|
||||
<td class='forumheader3' colspan='5'></td>
|
||||
<td class='forumheader3'>
|
||||
<td class='forumheader3' colspan='4'></td>
|
||||
<td class='forumheader3' style='text-align:center;'>
|
||||
<input class='button' type='submit' name='updateinherit' value='".CONTENT_ADMIN_CAT_LAN_7."' />
|
||||
</td>
|
||||
</tr>
|
||||
@ -92,19 +107,42 @@ if(!isset($CONTENT_ADMIN_MANAGER_START)){
|
||||
".$rs -> form_open("post", e_SELF."?".$qs[0], "catform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_24."</td>
|
||||
<td class='fcaption' style='width:65%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
<td class='fcaption' style='width:1%;'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:84%;'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_TABLE)){
|
||||
$CONTENT_ADMIN_MANAGER_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; text-align:left'>{CONTENT_ID}</td>
|
||||
<td class='forumheader3' style='width:65%;'>
|
||||
{CONTENT_LINK_CATEGORY} {CONTENT_MANAGER_PRE}{CONTENT_HEADING} {CONTENT_SUBHEADING}
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:84%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_LINK_MANAGER}
|
||||
</td>
|
||||
</tr>";
|
||||
@ -112,7 +150,7 @@ if(!isset($CONTENT_ADMIN_MANAGER_TABLE)){
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_END)){
|
||||
$CONTENT_ADMIN_MANAGER_END = "
|
||||
</table>
|
||||
".$rs -> form_close()."
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
@ -158,6 +196,9 @@ if(!isset($CONTENT_ADMIN_MANAGER_CATEGORY)){
|
||||
}
|
||||
|
||||
|
||||
$sc_style['CONTENT_ADMIN_SPACER']['pre'] = "<tr><td class='forumheader3' colspan='7' style='height:15px; border:0;'>";
|
||||
$sc_style['CONTENT_ADMIN_SPACER']['post'] = "</td></tr>";
|
||||
|
||||
// ##### CONTENT CATEGORY --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_CATEGORY_START)){
|
||||
$CONTENT_ADMIN_CATEGORY_START = "
|
||||
@ -165,23 +206,42 @@ if(!isset($CONTENT_ADMIN_CATEGORY_START)){
|
||||
".$rs -> form_open("post", e_SELF."?".$qs[0], "catform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_24."</td>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:15%'>".CONTENT_ADMIN_CAT_LAN_18."</td>
|
||||
<td class='fcaption' style='width:65%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:84%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CATEGORY_TABLE)){
|
||||
$CONTENT_ADMIN_CATEGORY_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:left'>{CONTENT_ID}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:15%'>{CONTENT_AUTHOR}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:65%;'>
|
||||
{CONTENT_LINK_CATEGORY} {CONTENT_MANAGER_PRE}{CONTENT_HEADING} {CONTENT_SUBHEADING}
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:84%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:left; white-space:nowrap;'>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; white-space:nowrap; vertical-align:top;'>
|
||||
{CONTENT_ADMIN_OPTIONS}
|
||||
</td>
|
||||
</tr>";
|
||||
@ -239,33 +299,51 @@ if(!isset($CONTENT_ADMIN_ORDER_START)){
|
||||
".$rs -> form_open("post", e_SELF."?order", "orderform")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_24."</td>
|
||||
<td class='fcaption' style='width:5%'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:15%'>".CONTENT_ADMIN_CAT_LAN_18."</td>
|
||||
<td class='fcaption' style='width:50%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_58."</td>
|
||||
<td class='fcaption' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='fcaption' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:64%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_58."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_TABLE)){
|
||||
$CONTENT_ADMIN_ORDER_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:left'>{CONTENT_ID}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:15%'>{CONTENT_AUTHOR}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:50%;'>
|
||||
{CONTENT_LINK_CATEGORY}
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING} {CONTENT_SUBHEADING} {CONTENT_ADMIN_ORDER_AMOUNT}
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:64%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING} {CONTENT_ADMIN_ORDER_AMOUNT}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:left; white-space:nowrap;'>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_CAT}
|
||||
{CONTENT_ADMIN_ORDER_CATALL}
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; white-space:nowrap;'>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_UPDOWN}
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; white-space:nowrap;'>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_SELECT}
|
||||
</td>
|
||||
</tr>";
|
||||
@ -273,7 +351,7 @@ if(!isset($CONTENT_ADMIN_ORDER_TABLE)){
|
||||
if(!isset($CONTENT_ADMIN_ORDER_END)){
|
||||
$CONTENT_ADMIN_ORDER_END = "
|
||||
<tr>
|
||||
<td class='fcaption' colspan='5'> </td>
|
||||
<td class='fcaption' colspan='4'> </td>
|
||||
<td class='fcaption' colspan='2' style='text-align:center'>
|
||||
{CONTENT_ADMIN_BUTTON}
|
||||
</td>
|
||||
@ -290,29 +368,44 @@ if(!isset($CONTENT_ADMIN_ORDER_CONTENT_START)){
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", "{CONTENT_ADMIN_FORM_TARGET}", "orderform")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr><td class='fcaption' colspan='5'>".CONTENT_ADMIN_MAIN_LAN_2."</td></tr>
|
||||
<tr>
|
||||
<td class='forumheader' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_8."</td>
|
||||
<td class='forumheader' style='width:15%; text-align:left;'>".CONTENT_ADMIN_ITEM_LAN_10."</td>
|
||||
<td class='forumheader' style='width:70%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='forumheader' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='forumheader' style='width:5%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:79%; text-align:left; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_TABLE)){
|
||||
$CONTENT_ADMIN_ORDER_CONTENT_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; white-space:nowrap;'>{CONTENT_ID}</td>
|
||||
<td class='forumheader3' style='width:15%; text-align:left; white-space:nowrap;'>
|
||||
{CONTENT_AUTHOR}
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:79%; text-align:left;'>
|
||||
{CONTENT_HEADING} ({CONTENT_ORDER})
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_ITEM}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:70%; text-align:left;'>
|
||||
{CONTENT_LINK} {CONTENT_HEADING} ({CONTENT_ORDER})
|
||||
</td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; white-space:nowrap;'>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_UPDOWN}
|
||||
</td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; white-space:nowrap;'>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_SELECT}
|
||||
</td>
|
||||
</tr>";
|
||||
@ -320,7 +413,7 @@ if(!isset($CONTENT_ADMIN_ORDER_CONTENT_TABLE)){
|
||||
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_END)){
|
||||
$CONTENT_ADMIN_ORDER_CONTENT_END = "
|
||||
<tr>
|
||||
<td class='fcaption' colspan='3'> </td>
|
||||
<td class='fcaption' colspan='2'> </td>
|
||||
<td class='fcaption' colspan='2' style='text-align:center'>
|
||||
{CONTENT_ADMIN_BUTTON}
|
||||
</td>
|
||||
@ -352,21 +445,40 @@ if(!isset($CONTENT_ADMIN_CONTENT_LIST_START)){
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "deletecontentform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_ITEM_LAN_8."</td>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_ITEM_LAN_9."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:left;'>".CONTENT_ADMIN_ITEM_LAN_10."</td>
|
||||
<td class='fcaption' style='width:70%; text-align:left;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='fcaption' style='width:84%; text-align:left;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_ITEM_LAN_12."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_LIST_TABLE)){
|
||||
$CONTENT_ADMIN_CONTENT_LIST_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; text-align:center'>{CONTENT_ID}</td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center'>{CONTENT_ICON}</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:left'>{CONTENT_AUTHOR}</td>
|
||||
<td class='forumheader3' style='width:70%; text-align:left;'>
|
||||
{CONTENT_LINK_ITEM} {CONTENT_HEADING} {CONTENT_SUBHEADING}</td>
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_ICON}</td>
|
||||
<td class='forumheader3' style='width:84%; text-align:left;'>
|
||||
{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_ITEM}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap; vertical-align:top;'>
|
||||
{CONTENT_ADMIN_OPTIONS}
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user