".CONTENT_ADMIN_ITEM_LAN_14." | ".$rs -> form_text("content_author_name", 70, $content_author_name_value, 100, "tbox", "", "", $content_author_name_js )." |
".CONTENT_ADMIN_ITEM_LAN_15." | ".$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)."
|
";
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 .= "
".$num." ".$rs -> form_text("content_files".$i."", 60, $attachments[$i], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_ITEM_LAN_105, "onclick=\"expandit('divfile".$i."')\"")."
";
if(empty($filelist)){
$text .= CONTENT_ADMIN_ITEM_LAN_122;
}else{
foreach($filelist as $file){
$text .= CONTENT_ICON_FILE."
".$file['fname']."";
}
}
$text .= "
";
}
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 .= "
".$num." ".$rs -> form_text("content_images".$i."", 60, $imagesarray[$i], 100)."
".$rs -> form_button("button", '', CONTENT_ADMIN_ITEM_LAN_105, "onclick=\"expandit('divimage".$i."')\"")."
";
if(empty($imagelist)){
$text .= CONTENT_ADMIN_ITEM_LAN_123;
}else{
foreach($imagelist as $image){
if(file_exists($image['path']."thumb_".$image['fname'])){
$img = "

";
}else{
$img = "

";
}
$text .= "
".$img." ";
}
}
$text .= "
";
}
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
*/
?>