array ( 0, 0, 0, 1, 1, 0, 0, 0, 1, /*files>*/ 1 ), //must always have title "title_en" => array ( 0, 1, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "title_sp" => array ( 0, 1, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "title_ca" => array ( 0, 1, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "text_en" => array ( 0, 1, 1, 0, 0, 1, 1, 0, 0, /*files>*/ 0 ), "text_sp" => array ( 0, 1, 1, 0, 0, 1, 1, 0, 0, /*files>*/ 0 ), "text_ca" => array ( 0, 1, 1, 0, 0, 1, 1, 0, 0, /*files>*/ 0 ), //special fields "bquote_en" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "bquote_sp" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "bquote_ca" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "squote_en" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "squote_sp" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "squote_ca" => array ( 1, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //must always have title "facebook" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "soundcloud" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "linkedin" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "vimeo" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "phone1" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "phone2" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "url" => array ( 0, 0, 0, 1, 1, 0, 0, 0, 1, /*files>*/ 0 ), "email" => array ( 0, 0, 0, 0, 0, 0, 0, 1, 0, /*files>*/ 0 ), "upload" => array ( 0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 1 ) ); $num_main_menu_fields = count($main_menu_fields); //echo $num_main_menu_fields; $main_menu_privileges= array( "connections" => array ( 0, 1, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //possible to attatch connections to this item? "additem" => array ( 0, 1, 0, 1, 1, 0, 0, 0, 1, /*files>*/ 1 ), //possible to add items? "changenumber" => array ( 1, 1, 1, 1, 1, 1, 1, 1, 1, /*files>*/ 0 ), //possible to change order of items? "delete" => array ( 0, 1, 0, 1, 1, 0, 0, 0, 1, /*files>*/ 1 ) //possible to delete items? ); $main_menu_conprivileges= array( "home" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "news" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 1 ), //what items can you connect to this item? "about" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "audio" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "video" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "rep1" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "rep2" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "contact" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "links" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ), //what items can you connect to this item? "pictures" => array (0, 0, 0, 0, 0, 0, 0, 0, 0, /*files>*/ 0 ) //what items can you connect to this item? ); //// END OF MENU ITEMS AND THEIR EDITABLE FIELDS //// //COLOR-THEME FOR THIS CLIENT $color = '#00aabb'; //WHAT VIEW ARE WE IN? $viewnr = $_GET[viewnr]; $view = $main_menu_views[$viewnr]; //WHAT IS THE EDITID? $editid = $_GET[editid]; //GET TITLE FOR EDITID ITEM TO DISPLAY IN HEADS if($editid != 'add' && $editid != NULL) { $edititem = mysql_query("SELECT * FROM " . $db_prefix . "_" . $view . " WHERE `id` = " . $editid . " ORDER BY id ASC"); $title = mysql_result($edititem,0,"title"); } ?> Elisenda Pujals Pico