1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

content: templated admin area, fixed IE7 bug on dropdowns

This commit is contained in:
lia 2007-01-13 22:33:03 +00:00
parent 2ad3ecc43a
commit 277323c81c
7 changed files with 2072 additions and 1646 deletions

View File

@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/admin_content_config.php,v $
| $Revision: 1.2 $
| $Date: 2006-12-31 14:46:30 $
| $Author: e107coders $
| $Revision: 1.3 $
| $Date: 2007-01-13 22:33:02 $
| $Author: lisa_ $
+---------------------------------------------------------------+
*/
@ -24,12 +24,10 @@ if(!getperms("P")){header("location:".e_BASE."index.php"); exit; }
$e_sub_cat = 'content';
$e_wysiwyg = "content_text,cat_text";
$plugindir = e_PLUGIN."content/";
require_once($plugindir."content_shortcodes.php");
$lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php';
include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/lan_content_admin.php');
$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');
require_once(e_ADMIN."auth.php");
require_once(e_HANDLER."form_handler.php");
@ -46,6 +44,12 @@ $fl = new e_file;
e107_require_once(e_HANDLER.'arraystorage_class.php');
$eArrayStorage = new ArrayData();
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");
}
global $tp;
$deltest = array_flip($_POST);

View File

@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_manager.php,v $
| $Revision: 1.2 $
| $Date: 2006-12-07 12:57:43 $
| $Author: mrpete $
| $Revision: 1.3 $
| $Date: 2007-01-13 22:33:03 $
| $Author: lisa_ $
+---------------------------------------------------------------+
*/
@ -22,7 +22,6 @@ require_once("../../class2.php");
$plugindir = e_PLUGIN."content/";
require_once($plugindir."content_shortcodes.php");
global $tp;
require_once(e_HANDLER."userclass_class.php");
require_once(e_HANDLER."form_handler.php");
@ -38,11 +37,14 @@ $adb = new contentdb;
require_once($plugindir."handlers/content_form_class.php");
$aform = new contentform;
$lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php';
include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/lan_content_admin.php');
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php');
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content.php');
$lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content.php';
include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/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");
}
$deltest = array_flip($_POST);
@ -53,11 +55,6 @@ if(e_QUERY){
// define e_pagetitle
$aa -> setPageTitle();
//if(preg_match("#(.*?)_delete_(\d+)#",$deltest[$tp->toJS("delete")],$matches)){
// $delete = $matches[1];
// $del_id = $matches[2];
//}
if(isset($_POST['delete'])){
$tmp = array_pop(array_flip($_POST['delete']));
list($delete, $del_id) = explode("_", $tmp);
@ -161,9 +158,6 @@ if(!e_QUERY){
}
}
require_once(FOOTERF);
?>

View File

@ -1028,5 +1028,663 @@ return $CONTENT_PDF_IMAGES;
}
SC_END
//##### ADMIN PAGE --------------------------------------------------
SC_BEGIN CONTENT_ID
global $row;
return $row['content_id'];
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'];
return ($row['content_icon'] ? "<img src='".$caticon."' alt='' style='vertical-align:middle' />" : "&nbsp;");
SC_END
SC_BEGIN CONTENT_ICON
global $CONTENT_ICON;
return $CONTENT_ICON;
SC_END
SC_BEGIN CONTENT_AUTHOR
global $row, $aa;
$authordetails = $aa -> getAuthor($row['content_author']);
return ($authordetails[0] != "0" ? "<a href='".e_BASE."user.php?id.".$authordetails[0]."'>".CONTENT_ICON_USER."</a>" : "")." ".$authordetails[1];
SC_END
SC_BEGIN CONTENT_HEADING
global $row, $tp;
return $tp->toHTML($row['content_heading'], TRUE, "");
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']."]" : "");
SC_END
SC_BEGIN CONTENT_LINK_ITEM
global $row, $plugindir;
return "<a href='".$plugindir."content.php?content.".$row['content_id']."'>".CONTENT_ICON_LINK."</a> ";
SC_END
SC_BEGIN CONTENT_LINK_CATEGORY
global $row, $plugindir;
return "<a href='".$plugindir."content.php?cat.".$row['content_id']."'>".CONTENT_ICON_LINK."</a>";
SC_END
SC_BEGIN CONTENT_LINK_OPTION
global $row;
return "<a href='".e_SELF."?option.".$row['content_id']."'>".CONTENT_ICON_OPTIONS."</a>";
SC_END
SC_BEGIN CONTENT_INHERIT
global $row, $content_pref;
return "<input type='checkbox' value='1' name='content_inherit[".$row['content_id']."]' ".(isset($content_pref['content_inherit']) && $content_pref['content_inherit']=='1' ? "checked='checked'" : "")." /><input type='hidden' name='id[".$row['content_id']."]' value='1' />";
SC_END
SC_BEGIN CONTENT_LINK_MANAGER
global $row;
return "<a href='".e_SELF."?manager.".intval($row['content_id'])."'>".CONTENT_ICON_CONTENTMANAGER_SMALL."</a>";
SC_END
SC_BEGIN CONTENT_MANAGER_PRE
global $row, $catarray, $catid;
$pre = '';
if($row['content_parent'] != "0"){
for($b=0;$b<(count($catarray[$catid])/2)-1;$b++){
$pre .= "_";
}
}
return $pre;
SC_END
SC_BEGIN CONTENT_ADMIN_HTML_CLASS
global $row;
if($row['content_parent'] == "0"){
//top level
$class = "forumheader";
}else{
//sub level
$class = "forumheader3";
}
return $class;
SC_END
SC_BEGIN CONTENT_ADMIN_MANAGER_APPROVE
global $row;
return r_userclass("content_manager_approve", $content_pref["content_manager_approve"], 'off', "public,guest,nobody,member,admin,classes");
SC_END
SC_BEGIN CONTENT_ADMIN_MANAGER_PERSONAL
global $row;
return r_userclass("content_manager_personal", $content_pref["content_manager_personal"], 'off', "public,guest,nobody,member,admin,classes");
SC_END
SC_BEGIN CONTENT_ADMIN_MANAGER_CATEGORY
global $row;
return r_userclass("content_manager_category", $content_pref["content_manager_category"], 'off', "public,guest,nobody,member,admin,classes");
SC_END
SC_BEGIN CONTENT_ORDER
global $row;
return $row['content_order'];
SC_END
SC_BEGIN CONTENT_ADMIN_CATEGORY
global $CONTENT_ADMIN_CATEGORY;
return $CONTENT_ADMIN_CATEGORY;
SC_END
SC_BEGIN CONTENT_ADMIN_OPTIONS
global $CONTENT_ADMIN_OPTIONS;
return $CONTENT_ADMIN_OPTIONS;
SC_END
SC_BEGIN CONTENT_ADMIN_BUTTON
global $CONTENT_ADMIN_BUTTON;
return $CONTENT_ADMIN_BUTTON;
SC_END
SC_BEGIN CONTENT_ADMIN_SPACER
global $CONTENT_ADMIN_SPACER;
return $CONTENT_ADMIN_SPACER;
SC_END
SC_BEGIN CONTENT_ADMIN_FORM_TARGET
global $CONTENT_ADMIN_FORM_TARGET;
return $CONTENT_ADMIN_FORM_TARGET;
SC_END
SC_BEGIN CONTENT_ADMIN_ORDER_SELECT
global $CONTENT_ADMIN_ORDER_SELECT;
return $CONTENT_ADMIN_ORDER_SELECT;
SC_END
SC_BEGIN CONTENT_ADMIN_ORDER_UPDOWN
global $CONTENT_ADMIN_ORDER_UPDOWN;
return $CONTENT_ADMIN_ORDER_UPDOWN;
SC_END
SC_BEGIN CONTENT_ADMIN_ORDER_AMOUNT
global $CONTENT_ADMIN_ORDER_AMOUNT;
return $CONTENT_ADMIN_ORDER_AMOUNT;
SC_END
SC_BEGIN CONTENT_ADMIN_ORDER_CAT
global $CONTENT_ADMIN_ORDER_CAT;
return $CONTENT_ADMIN_ORDER_CAT;
SC_END
SC_BEGIN CONTENT_ADMIN_ORDER_CATALL
global $CONTENT_ADMIN_ORDER_CATALL;
return $CONTENT_ADMIN_ORDER_CATALL;
SC_END
SC_BEGIN CONTENT_ADMIN_LETTERINDEX
global $CONTENT_ADMIN_LETTERINDEX;
return $CONTENT_ADMIN_LETTERINDEX;
SC_END
//##### CONTENT CATEGORY CREATE FORM -------------------------
SC_BEGIN CATFORM_CATEGORY
global $CATFORM_CATEGORY;
return $CATFORM_CATEGORY;
SC_END
SC_BEGIN CATFORM_HEADING
global $row, $rs;
return $rs -> form_text("cat_heading", 90, $row['content_heading'], 250);
SC_END
SC_BEGIN CATFORM_SUBHEADING
global $row, $rs, $show;
if($show['subheading']===true){
return $rs -> form_text("cat_subheading", 90, $row['content_subheading'], 250);
}
SC_END
SC_BEGIN CATFORM_TEXT
global $row, $rs, $show, $pref;
require_once(e_HANDLER."ren_help.php");
$insertjs = (!$pref['wysiwyg'] ? "onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'" : "");
$text = $rs -> form_textarea("cat_text", 80, 20, $row['content_text'], $insertjs)."<br />";
if (!$pref['wysiwyg']) { $text .= $rs -> form_text("helpb", 90, '', '', "helpbox")."<br />". display_help("helpb"); }
return $text;
SC_END
SC_BEGIN CATFORM_DATESTART
global $row, $rs, $show, $months, $ne_day, $ne_month, $ne_year, $current_year;
if($show['startdate']===true){
$text = "
".$rs -> form_select_open("ne_day")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_12, 0, "none");
for($count=1; $count<=31; $count++){
$text .= $rs -> form_option($count, ($ne_day == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("ne_month")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_13, 0, "none");
for($count=1; $count<=12; $count++){
$text .= $rs -> form_option($months[($count-1)], ($ne_month == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("ne_year")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_14, 0, "none");
for($count=($current_year-5); $count<=$current_year; $count++){
$text .= $rs -> form_option($count, ($ne_year == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CATFORM_DATEEND
global $row, $rs, $show, $months, $end_day, $end_month, $end_year, $current_year;
if($show['enddate']===true){
$text = "
".$rs -> form_select_open("end_day")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_12, 1, "none");
for($count=1; $count<=31; $count++){
$text .= $rs -> form_option($count, ($end_day == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("end_month")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_13, 1, "none");
for($count=1; $count<=12; $count++){
$text .= $rs -> form_option($months[($count-1)], ($end_month == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("end_year")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_14, 1, "none");
for($count=($current_year-5); $count<=$current_year; $count++){
$text .= $rs -> form_option($count, ($end_year == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CATFORM_UPLOAD
global $row, $show, $content_cat_icon_path_large, $content_cat_icon_path_small;
if($show['uploadicon']===true){
$text='';
if(!FILE_UPLOADS){
$text = "<b>".CONTENT_ADMIN_ITEM_LAN_21."</b>";
}else{
if(!is_writable($content_cat_icon_path_large)){
$text = "<b>".CONTENT_ADMIN_ITEM_LAN_22." ".$content_cat_icon_path_large." ".CONTENT_ADMIN_ITEM_LAN_23."</b><br />";
}
$text .= CONTENT_ADMIN_CAT_LAN_62."
<input class='tbox' type='file' name='file_userfile[]' size='58' />
<input type='hidden' name='iconpathlarge' value='".$content_cat_icon_path_large."' />
<input type='hidden' name='iconpathsmall' value='".$content_cat_icon_path_small."' />
<input class='button' type='submit' name='uploadcaticon' value='".CONTENT_ADMIN_CAT_LAN_63."' />";
}
return $text;
}
SC_END
SC_BEGIN CATFORM_ICON
global $row, $rs, $show, $fl, $content_cat_icon_path_large;
if($show['selecticon']===true){
$rejectlist = array('$.','$..','/','CVS','thumbs.db','Thumbs.db','*._$', 'index', 'null*');
$iconlist = $fl->get_files($content_cat_icon_path_large,"",$rejectlist);
$text = $rs -> form_text("cat_icon", 60, $row['content_icon'], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_CAT_LAN_8, "onclick=\"expandit('divcaticon')\"")."
<div id='divcaticon' style='{head}; display:none'>";
foreach($iconlist as $icon){
$text .= "<a href=\"javascript:insertext('".$icon['fname']."','cat_icon','divcaticon')\"><img src='".$icon['path'].$icon['fname']."' style='border:0' alt='' /></a> ";
}
$text .= "</div>";
return $text;
}
SC_END
SC_BEGIN CATFORM_COMMENT
global $row, $rs, $show;
if($show['comment']===true){
return $rs -> form_radio("cat_comment", "1", ($row['content_comment'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("cat_comment", "0", ($row['content_comment'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CATFORM_RATING
global $row, $rs, $show;
if($show['rating']===true){
return $rs -> form_radio("cat_rate", "1", ($row['content_rate'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("cat_rate", "0", ($row['content_rate'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CATFORM_PEICON
global $row, $rs, $show;
if($show['pe']===true){
return $rs -> form_radio("cat_pe", "1", ($row['content_pe'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("cat_pe", "0", ($row['content_pe'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CATFORM_VISIBILITY
global $row, $show;
if($show['visibility']===true){
return r_userclass("cat_class",$row['content_class'], "CLASSES");
}
SC_END
//##### CONTENT CREATE FORM -------------------------
SC_BEGIN CONTENTFORM_CATEGORYSELECT
global $CONTENTFORM_CATEGORYSELECT;
return $CONTENTFORM_CATEGORYSELECT;
SC_END
SC_BEGIN CONTENTFORM_CATEGORY
global $CONTENTFORM_CATEGORY;
return $CONTENTFORM_CATEGORY;
SC_END
SC_BEGIN CONTENTFORM_HEADING
global $row, $rs;
return $rs -> form_text("content_heading", 74, $row['content_heading'], 250);
SC_END
SC_BEGIN CONTENTFORM_SUBHEADING
global $row, $rs, $show;
if($show['subheading']===true){
return $rs -> form_text("content_subheading", 74, $row['content_subheading'], 250);
}
SC_END
SC_BEGIN CONTENTFORM_SUMMARY
global $row, $rs, $show;
if($show['summary']===true){
return $rs -> form_textarea("content_summary", 74, 5, $row['content_summary']);
}
SC_END
SC_BEGIN CONTENTFORM_TEXT
global $row, $rs, $tp, $show, $pref;
if(e_WYSIWYG){
$row['content_text'] = $tp->replaceConstants($row['content_text'], true);
}
require_once(e_HANDLER."ren_help.php");
$insertjs = (!e_WYSIWYG) ? "onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'": "";
$text = $rs -> form_textarea("content_text", 74, 20, $row['content_text'], $insertjs)."<br />";
if (!$pref['wysiwyg']) { $text .= $rs -> form_text("helpb", 90, '', '', "helpbox")."<br />".display_help("helpb"); }
return $text;
SC_END
SC_BEGIN CONTENTFORM_AUTHOR
global $row, $rs, $show, $content_author_name_value, $content_author_name_js, $content_author_email_value, $content_author_email_js, $content_author_id;
$text = "
<table style='width:100%; text-align:left;'>
<tr><td>".CONTENT_ADMIN_ITEM_LAN_14."</td><td>".$rs -> form_text("content_author_name", 70, $content_author_name_value, 100, "tbox", "", "", $content_author_name_js )."</td></tr>
<tr><td>".CONTENT_ADMIN_ITEM_LAN_15."</td><td>".$rs -> form_text("content_author_email", 70, $content_author_email_value, 100, "tbox", "", "", $content_author_email_js )."
".$rs -> form_hidden("content_author_id", $content_author_id)."
</td></tr></table>";
return $text;
SC_END
SC_BEGIN CONTENTFORM_DATESTART
global $row, $rs, $show, $months, $ne_day, $ne_month, $ne_year, $current_year;
if($show['startdate']===true){
$text = "
".$rs -> form_select_open("ne_day")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_12, 0, "none");
for($count=1; $count<=31; $count++){
$text .= $rs -> form_option($count, (isset($ne_day) && $ne_day == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("ne_month")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_13, 0, "none");
for($count=1; $count<=12; $count++){
$text .= $rs -> form_option($months[($count-1)], (isset($ne_month) && $ne_month == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("ne_year")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_14, 0, "none");
for($count=($current_year-5); $count<=($current_year+1); $count++){
$text .= $rs -> form_option($count, (isset($ne_year) && $ne_year == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_DATEEND
global $row, $rs, $show, $months, $end_day, $end_month, $end_year, $current_year;
if($show['enddate']===true){
$text = "
".$rs -> form_select_open("end_day")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_12, 0, "none");
for($count=1; $count<=31; $count++){
$text .= $rs -> form_option($count, (isset($end_day) && $end_day == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("end_month")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_13, 0, "none");
for($count=1; $count<=12; $count++){
$text .= $rs -> form_option($months[($count-1)], (isset($end_month) && $end_month == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close()."
".$rs -> form_select_open("end_year")."
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_14, 0, "none");
for($count=($current_year-5); $count<=($current_year+1); $count++){
$text .= $rs -> form_option($count, (isset($end_year) && $end_year == $count ? "1" : "0"), $count);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_UPLOAD
global $row, $rs, $show, $checkicon, $checkattach, $checkimages, $content_tmppath_icon, $content_tmppath_file, $content_tmppath_image;
if($show['upload']===true){
$text = "";
if(!FILE_UPLOADS){
$text .= "<b>".CONTENT_ADMIN_ITEM_LAN_21."</b>";
}else{
if(!is_writable($content_tmppath_icon)){
$text .= "<b>".CONTENT_ADMIN_ITEM_LAN_22." ".$content_tmppath_icon." ".CONTENT_ADMIN_ITEM_LAN_23."</b><br />";
}
if(!is_writable($content_tmppath_file)){
$text .= "<b>".CONTENT_ADMIN_ITEM_LAN_22." ".$content_tmppath_file." ".CONTENT_ADMIN_ITEM_LAN_23."</b><br />";
}
if(!is_writable($content_tmppath_image)){
$text .= "<b>".CONTENT_ADMIN_ITEM_LAN_22." ".$content_tmppath_image." ".CONTENT_ADMIN_ITEM_LAN_23."</b><br />";
}
$text .= "<br />
<input class='tbox' type='file' name='file_userfile[]' size='36' />
".$rs -> form_select_open("uploadtype")."
".($checkicon ? $rs -> form_option(CONTENT_ADMIN_ITEM_LAN_114, "0", "1") : '')."
".($checkattach ? $rs -> form_option(CONTENT_ADMIN_ITEM_LAN_115, "0", "2") : '')."
".($checkimages ? $rs -> form_option(CONTENT_ADMIN_ITEM_LAN_116, "0", "3") : '')."
".$rs -> form_select_close()."
<input type='hidden' name='tmppathicon' value='".$content_tmppath_icon."' />
<input type='hidden' name='tmppathfile' value='".$content_tmppath_file."' />
<input type='hidden' name='tmppathimage' value='".$content_tmppath_image."' />
<input class='button' type='submit' name='uploadfile' value='".CONTENT_ADMIN_ITEM_LAN_104."' />";
}
$text .= "<br />";
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_ICON
global $row, $rs, $show, $iconlist;
if($show['icon']===true){
$text = $rs -> form_text("content_icon", 60, $row['content_icon'], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_ITEM_LAN_105, "onclick=\"expandit('divicon')\"")."
<div id='divicon' style='{head}; display:none'>";
if(empty($iconlist)){
$text .= CONTENT_ADMIN_ITEM_LAN_121;
}else{
foreach($iconlist as $icon){
if(file_exists($icon['path']."thumb_".$icon['fname'])){
$img = "<img src='".$icon['path']."thumb_".$icon['fname']."' style='width:100px; border:0' alt='' />";
}else{
$img = "<img src='".$icon['path'].$icon['fname']."' style='width:100px; border:0' alt='' />";
}
$text .= "<a href=\"javascript:insertext('".$icon['fname']."','content_icon','divicon')\">".$img."</a> ";
}
}
$text .= "</div>";
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_ATTACH
global $row, $rs, $show, $checkattachnumber, $filelist;
if($show['attach']===true){
$filetmp = explode("[file]", $row['content_file']);
foreach($filetmp as $key => $value) {
if($value == "") {
unset($filetmp[$key]);
}
}
$attachments = array_values($filetmp);
for($i=0;$i<$checkattachnumber;$i++){
$k=$i+1;
$num = (strlen($k) == 1 ? "0".$k : $k);
$attachments[$i] = ($attachments[$i] ? $attachments[$i] : "");
//choose file
$text .= "
<div style='padding:2px;'>
".$num." ".$rs -> form_text("content_files".$i."", 60, $attachments[$i], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_ITEM_LAN_105, "onclick=\"expandit('divfile".$i."')\"")."
<div id='divfile".$i."' style='{head}; display:none'>";
if(empty($filelist)){
$text .= CONTENT_ADMIN_ITEM_LAN_122;
}else{
foreach($filelist as $file){
$text .= CONTENT_ICON_FILE." <a href=\"javascript:insertext('".$file['fname']."','content_files".$i."','divfile".$i."')\">".$file['fname']."</a><br />";
}
}
$text .= "</div></div>";
}
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_IMAGES
global $row, $rs, $show, $checkimagesnumber, $imagelist;
if($show['images']===true){
$imagestmp = explode("[img]", $row['content_image']);
foreach($imagestmp as $key => $value) {
if($value == "") {
unset($imagestmp[$key]);
}
}
$imagesarray = array_values($imagestmp);
for($i=0;$i<$checkimagesnumber;$i++){
$k=$i+1;
$num = (strlen($k) == 1 ? "0".$k : $k);
$imagesarray[$i] = ($imagesarray[$i] ? $imagesarray[$i] : "");
//choose image
$text .= "
<div style='padding:2px;'>
".$num." ".$rs -> form_text("content_images".$i."", 60, $imagesarray[$i], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_ITEM_LAN_105, "onclick=\"expandit('divimage".$i."')\"")."
<div id='divimage".$i."' style='{head}; display:none'>";
if(empty($imagelist)){
$text .= CONTENT_ADMIN_ITEM_LAN_123;
}else{
foreach($imagelist as $image){
if(file_exists($image['path']."thumb_".$image['fname'])){
$img = "<img src='".$image['path']."thumb_".$image['fname']."' style='width:100px; border:0' alt='' />";
}else{
$img = "<img src='".$image['path'].$image['fname']."' style='width:100px; border:0' alt='' />";
}
$text .= "<a href=\"javascript:insertext('".$image['fname']."','content_images".$i."','divimage".$i."')\">".$img."</a> ";
}
}
$text .= "</div></div>";
}
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_COMMENT
global $row, $rs, $show;
if($show['comment']===true){
return $rs -> form_radio("content_comment", "1", ($row['content_comment'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("content_comment", "0", ($row['content_comment'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CONTENTFORM_RATING
global $row, $rs, $show;
if($show['rating']===true){
return $rs -> form_radio("content_rate", "1", ($row['content_rate'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("content_rate", "0", ($row['content_rate'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CONTENTFORM_PEICON
global $row, $rs, $show;
if($show['pe']===true){
return $rs -> form_radio("content_pe", "1", ($row['content_pe'] ? "1" : "0"), "", "").CONTENT_ADMIN_ITEM_LAN_85." ".$rs -> form_radio("content_pe", "0", ($row['content_pe'] ? "0" : "1"), "", "").CONTENT_ADMIN_ITEM_LAN_86;
}
SC_END
SC_BEGIN CONTENTFORM_VISIBILITY
global $row, $show;
if($show['visibility']===true){
return r_userclass("content_class",$row['content_class'], "CLASSES");
}
SC_END
SC_BEGIN CONTENTFORM_SCORE
global $row, $rs, $show;
if($show['score']===true){
$text = $rs -> form_select_open("content_score")."
".$rs -> form_option(CONTENT_ADMIN_ITEM_LAN_41, 0, "none");
for($a=1; $a<=100; $a++){
$text .= $rs -> form_option($a, ($row['content_score'] == $a ? "1" : "0"), $a);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_META
global $row, $rs, $show;
if($show['meta']===true){
return $rs -> form_text("content_meta", 74, $row['content_meta'], 250);
}
SC_END
SC_BEGIN CONTENTFORM_LAYOUT
global $row, $rs, $show, $tp, $fl, $content_pref;
if($show['layout']===true){
if(!isset($content_pref["content_theme"])){
$dir = $plugindir."templates/default";
}else{
if(is_readable($tp->replaceConstants($content_pref["content_theme"])."content_content_template.php")){
$dir = $tp->replaceConstants($content_pref["content_theme"]);
}else{
$dir = $plugindir."templates/default";
}
}
//get_files($path, $fmask = '', $omit='standard', $recurse_level = 0, $current_level = 0, $dirs_only = FALSE)
$rejectlist = array('$.','$..','/','CVS','thumbs.db','Thumbs.db','*._$', 'index', 'null*', '.bak');
$templatelist = $fl->get_files($dir,"content_content",$rejectlist);
//template
$check = "";
if(isset($row['content_layout']) && $row['content_layout'] != ""){
$check = $row['content_layout'];
}else{
if(isset($content_pref["content_layout"])){
$check = $content_pref["content_layout"];
}
}
$text = $rs -> form_select_open("content_layout")."
".$rs -> form_option(CONTENT_ADMIN_ITEM_LAN_94, 0, "none");
foreach($templatelist as $template){
$templatename = substr($template['fname'], 25, -4);
$templatename = ($template['fname'] == "content_content_template.php" ? "default" : $templatename);
$text .= $rs -> form_option($templatename, ($check == $template['fname'] ? "1" : "0"), $template['fname']);
}
$text .= $rs -> form_select_close();
return $text;
}
SC_END
SC_BEGIN CONTENTFORM_CUSTOM
global $CONTENTFORM_CUSTOM;
return $CONTENTFORM_CUSTOM;
SC_END
SC_BEGIN CONTENTFORM_CUSTOM_KEY
global $CONTENTFORM_CUSTOM_KEY;
return $CONTENTFORM_CUSTOM_KEY;
SC_END
SC_BEGIN CONTENTFORM_CUSTOM_VALUE
global $CONTENTFORM_CUSTOM_VALUE;
return $CONTENTFORM_CUSTOM_VALUE;
SC_END
SC_BEGIN CONTENTFORM_PRESET
global $CONTENTFORM_PRESET;
return $CONTENTFORM_PRESET;
SC_END
SC_BEGIN CONTENTFORM_PRESET_KEY
global $CONTENTFORM_PRESET_KEY;
return $CONTENTFORM_PRESET_KEY;
SC_END
SC_BEGIN CONTENTFORM_PRESET_VALUE
global $CONTENTFORM_PRESET_VALUE;
return $CONTENTFORM_PRESET_VALUE;
SC_END
*/
?>
?>

View File

@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
| $Revision: 1.3 $
| $Date: 2007-01-13 22:33:03 $
| $Author: lisa_ $
+---------------------------------------------------------------+
*/
@ -838,106 +838,96 @@ class content{
}
//admin
function ShowOptionCat($currentparent=""){
//$mode : managecontent, createcontent, category
function ShowOption($currentparent="", $mode=''){
global $qs, $sql, $rs, $plugintable, $tp, $content_pref, $stylespacer;
$string = "";
if($currentparent == "submit"){
if( ($mode=='managecontent' || $mode=='createcontent') && $currentparent == "submit"){
$mainparent = $this -> getMainParent( intval($qs[2]) );
$catarray = $this -> getCategoryTree("", intval($mainparent), FALSE);
}else{
$catarray = $this -> getCategoryTree("", "", FALSE);
$catarray = $this -> getCategoryTree("", "", FALSE);
}
$array = array_keys($catarray);
$string = "";
foreach($array as $catid){
$category_total = $sql -> db_Select($plugintable, "content_id, content_heading, content_parent", "content_id='".intval($catid)."' ");
$row = $sql -> db_Fetch();
$pre = "";
if($row['content_parent'] == "0"){ //main parent level
}else{ //sub level
//sub level
if($row['content_parent'] != "0"){
for($b=0;$b<(count($catarray[$catid])/2)-1;$b++){
$pre .= "&nbsp;&nbsp;";
}
}
$emptystring = "----------------";
if($row['content_parent'] == 0){
$name = $row['content_heading'];
$js = "style='font-weight:bold;'";
}else{
$js = "";
$name = $pre.$row['content_heading'];
}
if($qs[0] == "cat"){
$js = "";
$catstring = "";
$name = $pre.$row['content_heading'];
$selectjs = "if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; }";
$label = $catid;
if($row['content_parent'] == 0){
$name = $row['content_heading'];
$js = "style='font-weight:bold;'";
if($mode=='managecontent'){
$checkid = ($currentparent ? $currentparent : "");
if($qs[0] == 'content' && ($qs[1]=='create' || $qs[1]=='submit') ){
$value = e_SELF."?content.".$qs[1].".".$catid;
}else{
$value = e_SELF."?content.".$catid;
}
}elseif($mode=='createcontent'){
if($qs[1] == "create" || $qs[1] == "submit"){
$checkid = (isset($qs[2]) && is_numeric($qs[2]) ? $qs[2] : "");
$value = $catid;
}else{
$checkid = ($currentparent ? $currentparent : "");
$value = $qs[2].".".$catid;
}
}elseif($mode=='category'){
if($qs[1] == "create"){
$checkid = (isset($qs[2]) && is_numeric($qs[2]) ? $qs[2] : "");
$value = e_SELF."?cat.create.".$catid;
$sel = ($catid == $checkid ? "1" : "0");
}elseif($qs[1] == "edit"){
$checkid = ($currentparent ? $currentparent : "");
$value = e_SELF."?cat.edit.".$qs[2].".".$catid;
$sel = ($catid == $checkid ? "1" : "0");
}
//manage items
}elseif($qs[0] == "" || $qs[0] == "content"){
$catstring = "";
$js = "";
$label = $catid;
$selectjs = "if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; }";
$name = $pre.$row['content_heading'];
if($row['content_parent'] == 0){
$name = $row['content_heading'];
$js = "style='font-weight:bold;'";
}
if($qs[1] == "create" || $qs[1] == "submit"){
$checkid = (isset($qs[2]) && is_numeric($qs[2]) ? $qs[2] : "");
$value = e_SELF."?content.".$qs[1].".".$catid;
$sel = ($catid == $checkid ? "1" : "0");
}else{
$checkid = ($currentparent ? $currentparent : "");
$sel = ($catid == $checkid ? "1" : "0");
if($qs[1] == "" || is_numeric($qs[1])){
$value = e_SELF."?content.".$catid;
}else{
$value = e_SELF."?content.".$qs[1].".".$qs[2].".".$catid;
}
}
}
$string .= $rs -> form_option($name, $sel, $value, ($label ? "label='".$label."'" : "label='none'")." ".$js ).$catstring;
$sel = ($catid == $checkid ? "1" : "0");
$string .= $rs -> form_option($name, $sel, $value, $js);
}
$selectjs = " onchange=\" document.getElementById('parent').value=this.options[this.selectedIndex].label; ".$selectjs." \"";
$text = $rs -> form_select_open("parent1", $selectjs);
if(!isset($qs[0])){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none", "label='none'");
}elseif( $qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2]) ){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none", "label='none'");
}elseif( $qs[0] == "content" && ($qs[1] == "create" || $qs[1] == "submit") ){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none", "label='none'");
}elseif( $qs[0] == "content" && is_numeric($qs[1]) ){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none", "label='none'");
}elseif($qs[0] == "cat" && $qs[1] == "create"){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_29."&nbsp;&nbsp;", (isset($qs[2]) ? "0" : "1"), e_SELF."?cat.create", "label='0' style='font-weight:bold;'");
}else{
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_29."&nbsp;&nbsp;", (isset($qs[2]) ? "0" : "1"), e_SELF."?cat.edit.".$qs[2].".0", "label='0' style='font-weight:bold;'");
if($mode=='managecontent'){
$selectjs = " onchange=\" if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; } \"";
$text = $rs -> form_select_open("parent1", $selectjs);
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none");
$text .= $string;
$text .= $rs -> form_select_close();
}elseif($mode=='createcontent'){
$redirecturl = e_SELF."?content.".$qs[1].".";
$selectjs = " onchange=\" if(this.options[this.selectedIndex].value != 'none'){ return document.location='".$redirecturl."'+this.options[this.selectedIndex].value; } \"";
$text = $rs -> form_select_open("parent1", $selectjs);
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_28, "0", "none");
$text .= $string;
$text .= $rs -> form_select_close();
}elseif($mode=='category'){
$selectjs = " onchange=\" if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; } \"";
$text = $rs -> form_select_open("parent1", $selectjs);
if($qs[1] == "create"){
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_29."&nbsp;&nbsp;", (isset($qs[2]) ? "0" : "1"), e_SELF."?cat.create", "style='font-weight:bold;'");
}else{
$text .= $rs -> form_option(CONTENT_ADMIN_MAIN_LAN_29."&nbsp;&nbsp;", (isset($qs[2]) ? "0" : "1"), e_SELF."?cat.edit.".$qs[2].".0", "style='font-weight:bold;'");
}
$text .= $string;
$text .= $rs -> form_select_close();
}
$text .= $string;
$text .= $rs -> form_select_close();
return $text;
}
function getOrder(){
global $qs, $content_pref;

View File

@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_db_class.php,v $
| $Revision: 1.2 $
| $Date: 2007-01-11 19:12:58 $
| $Revision: 1.3 $
| $Date: 2007-01-13 22:33:03 $
| $Author: lisa_ $
+---------------------------------------------------------------+
*/
@ -121,9 +121,29 @@ class contentdb{
}
$_POST['content_text'] = $tp -> toDB($_POST['content_text']);
$_POST['parent'] = ($_POST['parent'] ? intval($_POST['parent']) : "0");
$_POST['content_class'] = ($_POST['content_class'] ? intval($_POST['content_class']) : "0");
$_POST['content_meta'] = $tp -> toDB($_POST['content_meta']);
//$_POST['parent'] = ($_POST['parent'] ? intval($_POST['parent']) : "0");
//content create
if( isset($qs[0]) && $qs[0]=='content' && isset($qs[1]) && ($qs[1]=='create' || $qs[1]=='submit') && isset($qs[2]) && is_numeric($qs[2]) ){
$parent = intval($_POST['parent1']);
//content edit
}elseif( isset($qs[0]) && $qs[0]=='content' && isset($qs[1]) && ($qs[1]=='edit' || $qs[1]=='sa') && isset($qs[2]) && is_numeric($qs[2]) ){
if( isset($_POST['parent1']) && strpos($_POST['parent1'], ".") ){
$tmp = explode(".", $_POST['parent1']);
$parent = $tmp[1];
}else{
$parent = $_POST['parent1'];
}
}
$_POST['parent'] = $parent;
if(USER){
if($_POST['content_author_id']){
@ -322,7 +342,7 @@ class contentdb{
//function dbCategoryUpdate($mode){
function dbCategory($mode){
global $pref, $sql, $ns, $rs, $aa, $tp, $plugintable, $e107cache, $content_cat_icon_path_large, $content_cat_icon_path_small;
global $pref, $sql, $ns, $rs, $qs, $aa, $tp, $plugintable, $e107cache, $content_cat_icon_path_large, $content_cat_icon_path_small;
$_POST['cat_heading'] = $tp -> toDB($_POST['cat_heading']);
$_POST['cat_subheading'] = $tp -> toDB($_POST['cat_subheading']);
@ -330,9 +350,40 @@ class contentdb{
$_POST['cat_text'] = $tp->createConstants($_POST['cat_text']); // convert e107_images/ to {e_IMAGE} etc.
}
$_POST['cat_text'] = $tp -> toDB($_POST['cat_text']);
$_POST['parent'] = ($_POST['parent'] == "0" || $_POST['parent']==$_POST['cat_id'] ? "0" : "0.".intval($_POST['parent']));
$_POST['cat_class'] = ($_POST['cat_class'] ? intval($_POST['cat_class']) : "0");
//category create
if( isset($qs[0]) && $qs[0]=='cat' && isset($qs[1]) && $qs[1]=='create' ){
if( isset($qs[2]) && is_numeric($qs[2]) ){
$parent = intval($qs[2]);
}else{
$parent = 0;
}
//category edit
}elseif( isset($qs[0]) && $qs[0]=='cat' && isset($qs[1]) && $qs[1]=='edit' ){
if( isset($qs[2]) && is_numeric($qs[2]) ){
if( isset($qs[3]) && is_numeric($qs[3]) ){
if(intval($qs[3]) == 0){
$parent = 0;
}elseif( $qs[2] == $qs[3] ){
$parent = 0;
}else{
$parent = "0.".intval($qs[3]);
}
}else{
if($qs[2]==$_POST['cat_id']){
$parent = 0;
}else{
}
}
}else{
$parent = 0;
}
}
$_POST['parent'] = $parent;
if( isset($_POST['ne_day']) && $_POST['ne_day']!='' && $_POST['ne_day'] != "none"
&& isset($_POST['ne_month']) && $_POST['ne_month']!='' && $_POST['ne_month'] != "none"
&& isset($_POST['ne_year']) && $_POST['ne_year']!='' && $_POST['ne_year'] != "none" ){

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,580 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| 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 $
| $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 = "
<div style='text-align:center'>
".$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>
</tr>
<tr><td colspan='5' $stylespacer></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: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>
</tr>
<tr><td colspan='6' $stylespacer></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>
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
{CONTENT_LINK_OPTION}
</td>
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
{CONTENT_INHERIT}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_OPTIONS_END)){
$CONTENT_ADMIN_OPTIONS_END = "
<tr>
<td class='forumheader3' colspan='5'></td>
<td class='forumheader3'>
<input class='button' type='submit' name='updateinherit' value='".CONTENT_ADMIN_CAT_LAN_7."' />
</td>
</tr>
</table>
</form>
</div>";
}
// ##### CONTENT ERROR --------------------------------------------------
if(!isset($CONTENT_ADMIN_ERROR)){
$CONTENT_ADMIN_ERROR = "<div style='text-align:center;'>".CONTENT_ADMIN_CAT_LAN_9."</div>";
}
// ##### CONTENT MANAGER --------------------------------------------------
if(!isset($CONTENT_ADMIN_MANAGER_START)){
$CONTENT_ADMIN_MANAGER_START = "
<div style='text-align:center'>
".$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>
</tr>";
}
if(!isset($CONTENT_ADMIN_MANAGER_TABLE)){
$CONTENT_ADMIN_MANAGER_TABLE = "
<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>
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
{CONTENT_LINK_MANAGER}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_MANAGER_END)){
$CONTENT_ADMIN_MANAGER_END = "
</table>
".$rs -> form_close()."
</div>";
}
// ##### CONTENT MANAGER CATEGORY --------------------------------------------------
if(!isset($CONTENT_ADMIN_MANAGER_CATEGORY)){
$CONTENT_ADMIN_MANAGER_CATEGORY = "
<div style='text-align:center'>
".$rs -> form_open("post", e_SELF."?".e_QUERY, "managerform", "", "enctype='multipart/form-data'")."
<table class='fborder' style='".ADMIN_WIDTH."'>
<tr>
<td class='forumheader3' style='text-align:left'>
".CONTENT_ADMIN_MANAGER_LAN_0."<br />".CONTENT_ADMIN_MANAGER_LAN_1."<br />
</td>
<td class='forumheader3' style='text-align:left'>
{CONTENT_ADMIN_MANAGER_APPROVE}
</td>
</tr>
<tr>
<td class='forumheader3' style='text-align:left'>
".CONTENT_ADMIN_MANAGER_LAN_2."<br />".CONTENT_ADMIN_MANAGER_LAN_3."<br />
</td>
<td class='forumheader3' style='text-align:left'>
{CONTENT_ADMIN_MANAGER_PERSONAL}
</td>
</tr>
<tr>
<td class='forumheader3' style='text-align:left'>
".CONTENT_ADMIN_MANAGER_LAN_4."<br />".CONTENT_ADMIN_MANAGER_LAN_5."<br />
</td>
<td class='forumheader3' style='text-align:left'>
{CONTENT_ADMIN_MANAGER_CATEGORY}
</td>
</tr>
<tr>
<td colspan='2' class='fcaption' style='text-align:center'>
{CONTENT_ADMIN_BUTTON}
</td>
</tr>
</table>
</form>
</div>";
}
// ##### CONTENT CATEGORY --------------------------------------------------
if(!isset($CONTENT_ADMIN_CATEGORY_START)){
$CONTENT_ADMIN_CATEGORY_START = "
<div style='text-align:center'>
".$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:10%; text-align:center'>".CONTENT_ADMIN_CAT_LAN_20."</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_CATEGORY_TABLE)){
$CONTENT_ADMIN_CATEGORY_TABLE = "
<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>
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:left; white-space:nowrap;'>
{CONTENT_ADMIN_OPTIONS}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_CATEGORY_END)){
$CONTENT_ADMIN_CATEGORY_END = "
</table>
</form>
</div>";
}
// ##### CONTENT SUBMITTED --------------------------------------------------
if(!isset($CONTENT_ADMIN_SUBMITTED_START)){
$CONTENT_ADMIN_SUBMITTED_START = "
<div style='text-align:center'>
".$rs -> form_open("post", e_SELF, "submittedform","","", "")."
<table style='".ADMIN_WIDTH."' class='fborder'>
<tr>
<td style='width:5%; text-align:center;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_8."</td>
<td style='width:5%; text-align:center;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_9."</td>
<td style='width:15%; text-align:left;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_48."</td>
<td style='width:15%; text-align:left;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_10."</td>
<td style='width:50%; text-align:left;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
<td style='width:10%; text-align:center;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_12."</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_SUBMITTED_TABLE)){
$CONTENT_ADMIN_SUBMITTED_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:15%; text-align:left;'>{CONTENT_ADMIN_CATEGORY}</td>
<td class='forumheader3' style='width:15%; text-align:left;'>{CONTENT_AUTHOR}</td>
<td class='forumheader3' style='width:75%; text-align:left;'>
{CONTENT_HEADING} {CONTENT_SUBHEADING}
</td>
<td class='forumheader3' style='width:5%; text-align:center; white-space:nowrap;'>
{CONTENT_ADMIN_OPTIONS}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_SUBMITTED_END)){
$CONTENT_ADMIN_SUBMITTED_END = "
</table>
</form>
</div>";
}
// ##### CONTENT ORDER --------------------------------------------------
if(!isset($CONTENT_ADMIN_ORDER_START)){
$CONTENT_ADMIN_ORDER_START = "
<div style='text-align:center'>
".$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>
</tr>";
}
if(!isset($CONTENT_ADMIN_ORDER_TABLE)){
$CONTENT_ADMIN_ORDER_TABLE = "
<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>
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:left; 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;'>
{CONTENT_ADMIN_ORDER_UPDOWN}
</td>
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; white-space:nowrap;'>
{CONTENT_ADMIN_ORDER_SELECT}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_ORDER_END)){
$CONTENT_ADMIN_ORDER_END = "
<tr>
<td class='fcaption' colspan='5'>&nbsp;</td>
<td class='fcaption' colspan='2' style='text-align:center'>
{CONTENT_ADMIN_BUTTON}
</td>
</tr>
</table>
</form>
</div>";
}
// ##### CONTENT ORDER CONTENT --------------------------------------------------
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_START)){
$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>
</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>
<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;'>
{CONTENT_ADMIN_ORDER_UPDOWN}
</td>
<td class='forumheader3' style='width:5%; text-align:center; white-space:nowrap;'>
{CONTENT_ADMIN_ORDER_SELECT}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_END)){
$CONTENT_ADMIN_ORDER_CONTENT_END = "
<tr>
<td class='fcaption' colspan='3'>&nbsp;</td>
<td class='fcaption' colspan='2' style='text-align:center'>
{CONTENT_ADMIN_BUTTON}
</td>
</tr>
</table>
</form>
</div>";
}
// ##### CONTENT ITEM LIST : LETTERINDEX --------------------------------------------------
if(!isset($CONTENT_ADMIN_CONTENT_LIST_LETTER)){
$CONTENT_ADMIN_CONTENT_LIST_LETTER = "
<div style='text-align:center'>
<form method='post' action='{CONTENT_ADMIN_FORM_TARGET}'>
<table class='fborder' style='".ADMIN_WIDTH."'>
<tr><td colspan='2' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_6."</td></tr>
<tr><td colspan='2' class='forumheader3'>{CONTENT_ADMIN_LETTERINDEX}</td></tr>
</table>
</form>
</div>";
}
// ##### CONTENT ITEM LIST --------------------------------------------------
if(!isset($CONTENT_ADMIN_CONTENT_LIST_START)){
$CONTENT_ADMIN_CONTENT_LIST_START = "
<div style='text-align:center'>
".$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: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: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:10%; text-align:center; white-space:nowrap; vertical-align:top;'>
{CONTENT_ADMIN_OPTIONS}
</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_CONTENT_LIST_END)){
$CONTENT_ADMIN_CONTENT_LIST_END = "
</table>
</form>
</div>";
}
// ##### CONTENT CATEGORY SELECTOR --------------------------------------------------
if(!isset($CONTENT_ADMIN_CONTENT_CATSELECT)){
$CONTENT_ADMIN_CONTENT_CATSELECT = "
<div style='text-align:center'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_2."</td></tr>
<tr>
<td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td>
<td class='forumheader3'>{CONTENTFORM_CATEGORYSELECT}</td>
</tr>
</table>
</div>";
}
// ##### CONTENT CATEGORY CREATE --------------------------------------------------
$sc_style['CATFORM_CATEGORY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td><td class='forumheader3'>";
$sc_style['CATFORM_CATEGORY']['post'] = "</td></tr>";
$sc_style['CATFORM_HEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_2."</td><td class='forumheader3'>";
$sc_style['CATFORM_HEADING']['post'] = "</td></tr>";
$sc_style['CATFORM_SUBHEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_3."</td><td class='forumheader3'>";
$sc_style['CATFORM_SUBHEADING']['post'] = "</td></tr>";
$sc_style['CATFORM_TEXT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_4."</td><td class='forumheader3'>";
$sc_style['CATFORM_TEXT']['post'] = "</td></tr>";
$sc_style['CATFORM_DATESTART']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_15."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_17."<br /><br />";
$sc_style['CATFORM_DATESTART']['post'] = "</td></tr>";
$sc_style['CATFORM_DATEEND']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_16."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_18."<br /><br />";
$sc_style['CATFORM_DATEEND']['post'] = "</td></tr>";
$sc_style['CATFORM_UPLOAD']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_63."</td><td class='forumheader3'>";
$sc_style['CATFORM_UPLOAD']['post'] = "</td></tr>";
$sc_style['CATFORM_ICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_5."</td><td class='forumheader3'>";
$sc_style['CATFORM_ICON']['post'] = "</td></tr>";
$sc_style['CATFORM_COMMENT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_14."</td><td class='forumheader3'>";
$sc_style['CATFORM_COMMENT']['post'] = "</td></tr>";
$sc_style['CATFORM_RATING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_15."</td><td class='forumheader3'>";
$sc_style['CATFORM_RATING']['post'] = "</td></tr>";
$sc_style['CATFORM_PEICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_16."</td><td class='forumheader3'>";
$sc_style['CATFORM_PEICON']['post'] = "</td></tr>";
$sc_style['CATFORM_VISIBILITY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_17."</td><td class='forumheader3'>";
$sc_style['CATFORM_VISIBILITY']['post'] = "</td></tr>";
if(!isset($CONTENT_ADMIN_CAT_CREATE)){
$CONTENT_ADMIN_CAT_CREATE = "
<div style='text-align:center'>
".$rs -> form_open("post", e_SELF."?".e_QUERY, "dataform", "", "enctype='multipart/form-data'")."
<table class='fborder' style='".ADMIN_WIDTH."'>
{CATFORM_CATEGORY}
{CATFORM_HEADING}
{CATFORM_SUBHEADING}
{CATFORM_TEXT}
{CATFORM_DATESTART}
{CATFORM_DATEEND}
{CATFORM_UPLOAD}
{CATFORM_ICON}
{CATFORM_COMMENT}
{CATFORM_RATING}
{CATFORM_PEICON}
{CATFORM_VISIBILITY}
<tr><td class='forumheader' style='text-align:center' colspan='2'>{CONTENT_ADMIN_BUTTON}</td></tr>
</table>
</form>
</div>";
}
// ##### CONTENT CONTENT CREATE --------------------------------------------------
$sc_style['CONTENTFORM_CATEGORY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_CATEGORY']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_HEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_11."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_HEADING']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_SUBHEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_16."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_SUBHEADING']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_SUMMARY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_17."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_SUMMARY']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_TEXT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_18."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_TEXT']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_AUTHOR']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_51."</td><td class='forumheader3'>(".CONTENT_ADMIN_ITEM_LAN_71.")<br />";
$sc_style['CONTENTFORM_AUTHOR']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_DATESTART']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_15."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_17."<br /><br />";
$sc_style['CONTENTFORM_DATESTART']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_DATEEND']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_16."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_18."<br /><br />";
$sc_style['CONTENTFORM_DATEEND']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_UPLOAD']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_104."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_112."<br />".CONTENT_ADMIN_ITEM_LAN_113."<br />";
$sc_style['CONTENTFORM_UPLOAD']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_ICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_20."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_75."<br />";
$sc_style['CONTENTFORM_ICON']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_ATTACH']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_24."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_76."<br />";
$sc_style['CONTENTFORM_ATTACH']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_IMAGES']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_31."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_77."<br />";
$sc_style['CONTENTFORM_IMAGES']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_COMMENT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_36."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_COMMENT']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_RATING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_37."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_RATING']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_PEICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_38."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_PEICON']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_VISIBILITY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_39."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_VISIBILITY']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_SCORE']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_40."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_SCORE']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_META']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_53."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_70."<br />";
$sc_style['CONTENTFORM_META']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_LAYOUT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_92."</td><td class='forumheader3'>";
$sc_style['CONTENTFORM_LAYOUT']['post'] = "</td></tr>";
$sc_style['CONTENTFORM_CUSTOM']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_54."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_84."<br />".CONTENT_ADMIN_ITEM_LAN_68."<br />";
$sc_style['CONTENTFORM_CUSTOM']['post'] = "</td></tr>";
if(!isset($CONTENT_ADMIN_CONTENT_CREATE)){
$CONTENT_ADMIN_CONTENT_CREATE = "
<div style='text-align:center;'>
".$rs -> form_open("post", e_SELF."?".e_QUERY, "dataform", "", "enctype='multipart/form-data'")."
<table style='".ADMIN_WIDTH."' class='fborder'>
{CONTENTFORM_CATEGORY}
{CONTENTFORM_HEADING}
{CONTENTFORM_SUBHEADING}
{CONTENTFORM_SUMMARY}
{CONTENTFORM_TEXT}
{CONTENTFORM_AUTHOR}
{CONTENTFORM_DATESTART}
{CONTENTFORM_DATEEND}
{CONTENTFORM_UPLOAD}
{CONTENTFORM_ICON}
{CONTENTFORM_ATTACH}
{CONTENTFORM_IMAGES}
{CONTENTFORM_COMMENT}
{CONTENTFORM_RATING}
{CONTENTFORM_PEICON}
{CONTENTFORM_VISIBILITY}
{CONTENTFORM_SCORE}
{CONTENTFORM_META}
{CONTENTFORM_LAYOUT}
{CONTENTFORM_CUSTOM}
{CONTENTFORM_PRESET}
<tr><td class='forumheader' style='text-align:center' colspan='2'>{CONTENT_ADMIN_BUTTON}</td></tr>
</table>
</form>
</div>";
}
//custom tags
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMSTART)){
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMSTART = "<table style='width:100%; border:0;'>";
}
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMTABLE)){
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMTABLE = "
<tr>
<td class='forumheader3' style='border:0;'>{CONTENTFORM_CUSTOM_KEY}</td>
<td class='forumheader3' style='border:0;'>{CONTENTFORM_CUSTOM_VALUE}</td>
</tr>";
}
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMEND)){
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMEND = "</table>";
}
//preset tags
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_PRESET)){
$CONTENT_ADMIN_CONTENT_CREATE_PRESET = "
<tr>
<td class='forumheader3' style='width:20%; vertical-align:top;'>{CONTENTFORM_PRESET_KEY}</td>
<td class='forumheader3'>{CONTENTFORM_PRESET_VALUE}</td>
</tr>";
}
?>