[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 if (!defined('e107_INIT')) { exit; } 3 4 global $plugindir; 5 require_once ($plugindir."handlers/content_defines.php"); 6 $lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content_help.php'; 7 include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/lan_content_help.php'); 8 9 10 //$arrhide = array("creation", "submission", "paththeme", "general", "contentmanager", "menu", "recentpages", "catpages", "contentpages", "authorpage", "archivepage", "toppage", "scorepage"); 11 12 13 if(!e_QUERY){ 14 $text = CONTENT_ADMIN_HELP_ITEM_1; 15 }else{ 16 $qs = explode(".", e_QUERY); 17 18 //##### CONTENT -------------------------------------------------- 19 //manage content items 20 if($qs[0] == "content" && is_numeric($qs[1]) ){ 21 $text = CONTENT_ADMIN_HELP_ITEM_2; 22 23 //edit content item 24 }elseif($qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2]) ){ 25 $text = CONTENT_ADMIN_HELP_ITEMEDIT_1; 26 27 //post submitted content item 28 }elseif($qs[0] == "content" && $qs[1] == "sa" && is_numeric($qs[2]) ){ 29 $text = CONTENT_ADMIN_HELP_ITEMCREATE_2; 30 31 //create content item 32 }elseif($qs[0] == "content" && $qs[1] == "create" ){ 33 //Create New Content (no category selected) 34 if(!isset($qs[2])){ 35 $text = CONTENT_ADMIN_HELP_ITEMCREATE_1; 36 37 //Create New Content (category selected) 38 }elseif(is_numeric($qs[2])){ 39 $text = CONTENT_ADMIN_HELP_ITEMCREATE_2; 40 } 41 42 //##### ORDER -------------------------------------------------- 43 //order : view categories 44 }elseif($qs[0] == "order" && (!isset($qs[1]) || $qs[1] == "inc" || $qs[1] == "dec")){ 45 $text = CONTENT_ADMIN_HELP_ORDER_1; 46 47 //order global items of parent='2' 48 }elseif($qs[0] == "order" && is_numeric($qs[1]) && (!isset($qs[2]) || $qs[2] == "inc" || $qs[2] == "dec") ){ 49 $text = CONTENT_ADMIN_HELP_ORDER_3; 50 51 //order items with parent=2 or category='5' 52 }elseif($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && (!isset($qs[3]) || $qs[3] == "inc" || $qs[3] == "dec") ){ 53 $text = CONTENT_ADMIN_HELP_ORDER_2; 54 55 //##### SUBMITTED -------------------------------------------------- 56 }elseif($qs[0] == "submitted" && !isset($qs[1]) ){ 57 $text = CONTENT_ADMIN_HELP_SUBMIT_1; 58 59 //##### OPTION -------------------------------------------------- 60 //option: mainpage 61 }elseif($qs[0] == "option" && !isset($qs[1]) ){ 62 $text = CONTENT_ADMIN_HELP_OPTION_1; 63 64 //option: with main parent selected, show all options 65 }elseif($qs[0] == "option" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1] == "default") ){ 66 //$text = CONTENT_ADMIN_HELP_OPTION_2; 67 $text .= " 68 <div id='creationhelp'>".CONTENT_ADMIN_HELP_OPTION_DIV_1."</div> 69 <div id='catcreationhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_14."</div> 70 <div id='submissionhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_2."</div> 71 <div id='paththemehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_3."</div> 72 <div id='generalhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_4."</div> 73 <div id='menuhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_6."</div> 74 <div id='recentpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_7."</div> 75 <div id='catpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_8."</div> 76 <div id='contentpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_9."</div> 77 <div id='authorpagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_10."</div> 78 <div id='archivepagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_11."</div> 79 <div id='toppagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_12."</div> 80 <div id='scorepagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_13."</div> 81 "; 82 83 //##### CATEGORY -------------------------------------------------- 84 //category content manager : choose category 85 }elseif($qs[0] == "manager" && !isset($qs[1]) ){ 86 $text = CONTENT_ADMIN_HELP_MANAGER_1; 87 88 //category content manager : view contentmanager 89 }elseif($qs[0] == "manager" && isset($qs[1]) && is_numeric($qs[1]) ){ 90 $text = CONTENT_ADMIN_HELP_MANAGER_2; 91 92 //overview all categories 93 }elseif($qs[0] == "cat" && !isset($qs[1]) ){ 94 $text = CONTENT_ADMIN_HELP_CAT_1; 95 96 //create category 97 }elseif($qs[0] == "cat" && $qs[1] == "create" ){ 98 $text = CONTENT_ADMIN_HELP_CAT_2; 99 100 //edit category 101 }elseif($qs[0] == "cat" && $qs[1] == "edit" && is_numeric($qs[2]) ){ 102 $text = CONTENT_ADMIN_HELP_CAT_3; 103 104 } 105 } 106 $ns -> tablerender(CONTENT_ADMIN_HELP_1, $text); 107 108 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |