diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index a33f36e01b..3bf9a54079 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -49,6 +49,7 @@ * 'current' => // I currently select id * // optional for link-string: * 'only_app' => // I string with appname, eg. 'projectmananager' to list only linked projects + * 'link_type' => // I string with sub-type key to list only entries of that type * ); * * @@ -270,6 +271,9 @@ class link_widget $tpl = new etemplate('etemplate.link_widget.to'); if ($value['link_label']) $tpl->set_cell_attribute('create','label',$value['link_label']); if ($value['search_label']) $tpl->set_cell_attribute('search','label',$value['search_label']); + + self::get_sub_types($cell, $value, $tpl); + break; case 'link-list': @@ -333,6 +337,7 @@ class link_widget $tpl = new etemplate('etemplate.link_widget.entry'); $options = $cell['size'] ? explode(',',$cell['size']) : array(); $app = $extension_data['app'] = $options[0]; + $link_type = $extension_data['link_type']; // handle extra args for onclick like: values2url(this.form,'start,end,duration,participants,recur_type,whole_day')+'&exec[event_id]= if ( isset($value) && is_array($value) && isset($value['extra']) ) { @@ -348,7 +353,7 @@ class link_widget { if (isset($value['current'])) { - list($app,$id) = explode(':',$value['current']); + list($app,$id) = explode(':',$value['current'], 2); } } else @@ -356,7 +361,7 @@ class link_widget // add selected-entry plus "new search" to the selectbox-options if (!isset($app) || strpos($value,':') !== false) { - list($app,$id) = explode(':',$value); + list($app,$id) = explode(':',$value, 2); } else { @@ -406,6 +411,7 @@ class link_widget 'blur' => count($options) == 1 ? lang($app) : lang('Search'), 'extra' => $cell['onchange'] ? ','.self::AJAX_NEED_ONCHANGE : null, // store flang for ajax_search, to display extra_line required by onchange ); + if ($options) // limit the app-selectbox to the given apps { $tpl->set_cell_attribute('app','type','select'); @@ -418,6 +424,9 @@ class link_widget } $value['options-app'] = $apps; } + + self::get_sub_types($cell, $value, $tpl); + break; case 'link-apps': @@ -599,6 +608,29 @@ class link_widget return True; } + /** + * Get sub-types for the current application + */ + private static function get_sub_types($cell, &$value, &$tpl) { + // Get sub-types + if($value['options-app']) { + $apps = $value['options_app']; + } else { + $apps = egw_link::app_list($cell['size'] ? $cell['size'] : 'query'); + asort($apps); // sort them alphabetic + } + + $current_app = $value['app'] ? $value['app'] : key($apps); + if(is_array(egw_link::$app_register[$current_app]['types'])) { + foreach(egw_link::$app_register[$current_app]['types'] as $key => $settings) { + $value['options-link_type'][$key] = $settings['name']; + } + $span =& $tpl->get_cell_attribute('type_box','span'); + $span = str_replace('type_hide','type_show',$span); + unset($span); + } + } + /** * Ajax callback to search in $app for $pattern, result is displayed in $id * @@ -614,7 +646,7 @@ class link_widget * @param string $extra optionnal extra search arguments * @return string xajax xml response */ - static function ajax_search($app,$pattern,$id_res,$id_hide,$id_show,$id_input,$etemplate_exec_id,$extra=array()) + static function ajax_search($app,$type,$pattern,$id_res,$id_hide,$id_show,$id_input,$etemplate_exec_id,$extra=array()) { $extra_array = array(); if (!empty($extra)) @@ -638,9 +670,9 @@ class link_widget if ($etemplate_exec_id) $request = etemplate_request::read($etemplate_exec_id); $response = new xajaxResponse(); - //$args = func_get_args(); $response->addAlert("link_widget::ajax_search('".implode("',\n'",$args)."')\n calling link->query( $app , $search )" ); + //$args = func_get_args(); $response->addAlert("link_widget::ajax_search('".implode("',\n'",$args)."')\n calling link->query( $app , $search, $type )" ); //$args = func_get_args(); error_log(__METHOD__."('".implode("','",$args)."')"); - if (!($found = egw_link::query($app,$search))) // ignore the blur-text + if (!($found = egw_link::query($app,$search,$type))) // ignore the blur-text { $GLOBALS['egw']->translation->add_app('etemplate'); $response->addAlert(lang('Nothing found - try again !!!')); @@ -694,4 +726,61 @@ class link_widget } return $response->getXML(); } + + /** + * Ajax callback to search for sub-types for $app, result is displayed in $id_res + * + * Called via onChange from etemplate.link_widget.(to|entry)'s app list + * + * @param string $app app-name to search + * @param string $id_res id of selectbox to show the result + * @param string $etemplate_exec_id of the calling etemplate, to upate the allowed ids + * @return string xajax xml response + */ + static function ajax_get_types($app,$id_res,$etemplate_exec_id) + { + // open request + if ($etemplate_exec_id) $request = etemplate_request::read($etemplate_exec_id); + + $response = new xajaxResponse(); + //$args = func_get_args(); $response->addAlert("link_widget::ajax_search('".implode("',\n'",$args)."')\n calling link->query( $app , $search )" ); + //$args = func_get_args(); error_log(__METHOD__."('".implode("','",$args)."')"); + + + $script = "var select = document.getElementById('$id_res');\nselect.options.length=0;\n"; + if(is_array(egw_link::$app_register[$app]['types'])) { + $found = egw_link::$app_register[$app]['types']; + foreach(egw_link::$app_register[$app]['types'] as $id => $option) + { + $option = array('label' => $option['name']); + $script .= "opt = select.options[select.options.length] = new Option('".addslashes($option['label'])."','".addslashes($id)."');\n"; + if (count($option) > 1) + { + foreach($option as $name => $value) + { + if ($name != 'label') $script .= "opt.$name = '".addslashes($value)."';\n"; + } + } + } + $script .= "document.getElementById('$id_res').parentNode.style.display='inline';\n"; + } else { + $script .= "document.getElementById('$id_res').parentNode.style.display='none';\n"; + } + $response->addScript($script); + + // store new allowed id's in the eT request + if ($request) + { + $data = $request->get_to_process($id_res); + //error_log($id_res.'='.array2string($data)); + $data['allowed'] = $found ? array_keys($found) : array(); + $request->set_to_process($id_res,$data); + // update id, if request changed it (happens if the request data is stored direct in the form) + if ($etemplate_exec_id != ($new_id = $request->id())) + { + $response->addAssign('etemplate_exec_id','value',$new_id); + } + } + return $response->getXML(); + } } diff --git a/etemplate/setup/etemplates.inc.php b/etemplate/setup/etemplates.inc.php index 72e9fc7969..9b31a83ba3 100644 --- a/etemplate/setup/etemplates.inc.php +++ b/etemplate/setup/etemplates.inc.php @@ -2,7 +2,7 @@ /** * eGroupWare - eTemplates for Application etemplate * http://www.egroupware.org - * generated by soetemplate::dump4setup() 2009-09-25 09:44 + * generated by soetemplate::dump4setup() 2009-11-19 13:02 * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package etemplate @@ -117,8 +117,9 @@ $templ_data[] = array('name' => 'etemplate.link_widget.attach','template' => '', $templ_data[] = array('name' => 'etemplate.link_widget.create','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:6:"row_on";s:2:"c2";s:7:"row_off";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:3:"app";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:2:"id";s:4:"help";s:28:"Select an entry to link with";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Link";s:4:"name";s:6:"create";s:4:"help";s:29:"click here to create the Link";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:10:"New search";s:4:"name";s:3:"new";s:4:"help";s:36:"start a new search, cancel this link";}}i:2;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Comment";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"50,50";s:4:"span";s:3:"all";s:4:"name";s:6:"remark";s:4:"help";s:28:"optional note about the Link";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"cols";i:4;}}','size' => '','style' => '','modified' => '1035043515',); -$templ_data[] = array('name' => 'etemplate.link_widget.entry','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:7:{s:4:"type";s:3:"box";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:7:{s:4:"type";s:3:"box";s:4:"size";s:6:"3,,0,0";i:1;a:3:{s:4:"type";s:9:"link-apps";s:4:"name";s:3:"app";s:4:"help";s:28:"Select application to search";}i:2;a:4:{s:4:"type";s:4:"text";s:4:"name";s:5:"query";s:4:"blur";s:5:"@blur";s:4:"size";s:6:"@extra";}s:4:"span";s:11:",box_inline";s:4:"name";s:11:"search_line";i:3;a:5:{s:4:"type";s:6:"button";s:4:"name";s:6:"search";s:5:"label";s:1:">";s:4:"help";s:30:"Click here to start the search";s:7:"onclick";s:290:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_search\',document.getElementById(form::name(\'app\')).value,document.getElementById(form::name(\'query\')).value,form::name(\'id\'),form::name(\'search_line\'),form::name(\'select_line\'),form::name(\'query\'),this.form.etemplate_exec_id.value); return false;";}}i:2;a:5:{s:4:"type";s:3:"box";s:4:"size";s:1:"1";s:4:"span";s:22:",link_select link_hide";i:1;a:4:{s:4:"type";s:6:"select";s:4:"name";s:2:"id";s:8:"onchange";s:254:"if (this.value == \'\') { document.getElementById(form::name(\'search_line\')).style.display=\'inline\'; document.getElementById(form::name(\'select_line\')).style.display=\'none\';} else if (this.options[0].value == \' \' || this.value == 0) { this.form.submit(); }";s:7:"no_lang";s:1:"1";}s:4:"name";s:11:"select_line";}}}','size' => '','style' => '.link_hide { display: none; } -','modified' => '1159544478',); +$templ_data[] = array('name' => 'etemplate.link_widget.entry','template' => '','lang' => '','group' => '0','version' => '1.7.002','data' => 'a:1:{i:0;a:7:{s:4:"type";s:3:"box";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"2";i:1;a:8:{s:4:"type";s:3:"box";s:4:"size";s:6:"4,,0,0";i:1;a:4:{s:4:"name";s:3:"app";s:4:"help";s:28:"Select application to search";s:4:"type";s:9:"link-apps";s:8:"onchange";s:177:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_get_types\',document.getElementById(form::name(\'app\')).value,form::name(\'link_type\'),this.form.etemplate_exec_id.value); return false;";}i:2;a:5:{s:4:"type";s:3:"box";s:4:"name";s:8:"type_box";s:4:"size";s:1:"1";i:1;a:3:{s:4:"type";s:6:"select";s:4:"name";s:9:"link_type";s:4:"help";s:51:"Search only selected record type in the application";}s:4:"span";s:10:",type_hide";}s:4:"span";s:11:",box_inline";s:4:"name";s:11:"search_line";i:3;a:4:{s:4:"type";s:4:"text";s:4:"name";s:5:"query";s:4:"blur";s:5:"@blur";s:4:"size";s:6:"@extra";}i:4;a:5:{s:4:"type";s:6:"button";s:4:"name";s:6:"search";s:5:"label";s:1:">";s:4:"help";s:30:"Click here to start the search";s:7:"onclick";s:345:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_search\',document.getElementById(form::name(\'app\')).value,document.getElementById(form::name(\'link_type\')).value,document.getElementById(form::name(\'query\')).value,form::name(\'id\'),form::name(\'search_line\'),form::name(\'select_line\'),form::name(\'query\'),this.form.etemplate_exec_id.value); return false;";}}i:2;a:5:{s:4:"type";s:3:"box";s:4:"size";s:1:"1";s:4:"span";s:22:",link_select link_hide";i:1;a:4:{s:4:"type";s:6:"select";s:4:"name";s:2:"id";s:8:"onchange";s:254:"if (this.value == \'\') { document.getElementById(form::name(\'search_line\')).style.display=\'inline\'; document.getElementById(form::name(\'select_line\')).style.display=\'none\';} else if (this.options[0].value == \' \' || this.value == 0) { this.form.submit(); }";s:7:"no_lang";s:1:"1";}s:4:"name";s:11:"select_line";}}}','size' => '','style' => '.link_hide { display: none; } +.type_hide { display: none;} +.type_show { display: inline;}','modified' => '1258396333',); $templ_data[] = array('name' => 'etemplate.link_widget.entry.test','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:10:"link-entry";s:4:"name";s:4:"test";}s:1:"B";a:4:{s:4:"type";s:4:"link";s:4:"size";s:11:"addressbook";s:5:"label";s:4:"View";s:4:"name";s:4:"test";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1248271216',); @@ -129,10 +130,9 @@ $templ_data[] = array('name' => 'etemplate.link_widget.list','template' => '','l $templ_data[] = array('name' => 'etemplate.link_widget.search','template' => '','lang' => '','group' => '0','version' => '1.2.001','data' => 'a:2:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2:"c1";s:6:"row_on";s:2:"c3";s:7:"row_off";s:2:"h3";s:10:",@no_files";s:2:"c2";s:6:"row_on";s:2:"h2";s:6:",!@msg";}i:1;a:4:{s:1:"A";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:4:"help";s:26:"Select an App to search in";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"32";s:4:"name";s:5:"query";s:4:"help";s:22:"Enter a search pattern";s:8:"tabindex";i:99;}s:1:"C";a:6:{s:4:"type";s:6:"button";s:5:"label";s:6:"Search";s:4:"name";s:6:"search";s:4:"help";s:30:"Click here to start the search";s:4:"span";s:3:"all";s:8:"tabindex";i:100;}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:2;a:4:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Attach file";}s:1:"B";a:4:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";s:4:"help";s:69:"Enter filename to upload and attach, use [Browse...] to search for it";s:4:"size";s:2:"12";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Attach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to attach the file";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comment";s:4:"help";s:28:"optional note about the Link";s:8:"onchange";s:81:"set_style_by_class(\'*\',\'hide_comment\',\'display\',this.checked ? \'block\' : \'none\');";}}}s:4:"rows";i:3;s:4:"cols";i:4;}i:1;a:6:{s:4:"type";s:4:"text";s:4:"name";s:6:"remark";s:4:"size";s:5:"50,50";s:4:"span";s:13:",hide_comment";s:5:"label";s:7:"Comment";s:4:"help";s:28:"optional note about the Link";}}','size' => '','style' => '.redItalic { font-style: italic; color: red; } .hide_comment { display: none; }','modified' => '1131608831',); -$templ_data[] = array('name' => 'etemplate.link_widget.to','template' => '','lang' => '','group' => '0','version' => '1.5.002','data' => 'a:1:{i:0;a:8:{s:4:"type";s:3:"box";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"3";i:1;a:5:{s:4:"type";s:3:"box";s:4:"size";s:6:"2,,0,0";i:1;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:9:"link-apps";s:4:"name";s:3:"app";s:4:"help";s:28:"Select application to search";s:5:"label";s:13:"@search_label";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:5:"query";s:4:"blur";s:6:"Search";}i:3;a:5:{s:4:"type";s:6:"button";s:4:"name";s:12:"start_search";s:5:"label";s:1:">";s:4:"help";s:30:"Click here to start the search";s:7:"onclick";s:315:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_search\',document.getElementById(form::name(\'app\')).value,document.getElementById(form::name(\'query\')).value,form::name(\'id\'),form::name(\'search_line\'),form::name(\'remark\')+\',\'+form::name(\'select_line\'),form::name(\'query\'),this.form.etemplate_exec_id.value); return false;";}}i:2;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:10:",@no_files";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";s:4:"help";s:69:"Enter filename to upload and attach, use [Browse...] to search for it";s:4:"size";s:2:"12";s:5:"label";s:11:"attach file";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Attach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to attach the file";}s:1:"C";a:5:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comment";s:4:"help";s:28:"optional note about the Link";s:8:"onchange";s:88:"document.getElementById(form::name(\'remark\')).style.display=this.checked?\'block\':\'none\';";s:7:"onclick";s:133:"document.getElementById(form::name(\'remark\')).style.display=document.getElementById(\'exec[link_to][comment]\').checked?\'block\':\'none\';";}}}s:4:"rows";i:1;s:4:"cols";i:3;}s:4:"name";s:11:"search_line";}i:2;a:6:{s:4:"type";s:3:"box";s:4:"size";s:1:"2";s:4:"span";s:22:",link_select link_hide";i:1;a:4:{s:4:"type";s:6:"select";s:4:"name";s:2:"id";s:8:"onchange";s:227:"if (!this.value) { document.getElementById(form::name(\'search_line\')).style.display=\'inline\'; document.getElementById(form::name(\'remark\')).style.display=document.getElementById(form::name(\'select_line\')).style.display=\'none\';}";s:7:"no_lang";s:1:"1";}s:4:"name";s:11:"select_line";i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Link";s:4:"name";s:6:"create";s:4:"help";s:29:"click here to create the Link";}}i:3;a:6:{s:4:"type";s:4:"text";s:4:"name";s:6:"remark";s:4:"size";s:5:"50,50";s:4:"span";s:13:",hide_comment";s:4:"help";s:28:"optional note about the Link";s:4:"blur";s:7:"Comment";}}}','size' => '','style' => '.link_select { white-space: nowrap; } +$templ_data[] = array('name' => 'etemplate.link_widget.to','template' => '','lang' => '','group' => '0','version' => '1.7.002','data' => 'a:1:{i:0;a:7:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:4:"type";s:3:"box";s:4:"size";s:1:"3";i:1;a:5:{s:4:"name";s:11:"search_line";s:4:"size";s:6:"2,,0,0";s:4:"type";s:3:"box";i:1;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";i:1;a:5:{s:5:"label";s:13:"@search_label";s:4:"name";s:3:"app";s:4:"type";s:9:"link-apps";s:4:"help";s:28:"Select application to search";s:8:"onchange";s:177:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_get_types\',document.getElementById(form::name(\'app\')).value,form::name(\'link_type\'),this.form.etemplate_exec_id.value); return false;";}i:2;a:5:{s:4:"type";s:3:"box";s:4:"name";s:8:"type_box";s:4:"size";s:1:"1";i:1;a:3:{s:4:"type";s:6:"select";s:4:"name";s:9:"link_type";s:4:"help";s:51:"Search only selected record type in the application";}s:4:"span";s:10:",type_hide";}i:3;a:3:{s:4:"blur";s:6:"Search";s:4:"name";s:5:"query";s:4:"type";s:4:"text";}i:4;a:5:{s:5:"label";s:1:">";s:7:"onclick";s:345:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_search\',document.getElementById(form::name(\'app\')).value,document.getElementById(form::name(\'link_type\')).value,document.getElementById(form::name(\'query\')).value,form::name(\'id\'),form::name(\'search_line\'),form::name(\'select_line\'),form::name(\'query\'),this.form.etemplate_exec_id.value); return false;";s:4:"name";s:12:"start_search";s:4:"type";s:6:"button";s:4:"help";s:30:"Click here to start the search";}}i:2;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:10:",@no_files";}i:1;a:3:{s:1:"A";a:5:{s:5:"label";s:11:"attach file";s:4:"name";s:4:"file";s:4:"size";s:2:"12";s:4:"type";s:4:"file";s:4:"help";s:69:"Enter filename to upload and attach, use [Browse...] to search for it";}s:1:"B";a:4:{s:5:"label";s:6:"Attach";s:4:"name";s:6:"attach";s:4:"type";s:6:"button";s:4:"help";s:29:"Click here to attach the file";}s:1:"C";a:4:{s:8:"onchange";s:88:"document.getElementById(form::name(\'remark\')).style.display=this.checked?\'block\':\'none\';";s:4:"name";s:7:"comment";s:4:"type";s:8:"checkbox";s:4:"help";s:28:"optional note about the Link";}}}s:4:"cols";i:3;s:4:"rows";i:1;}}i:2;a:7:{s:5:"class";s:21:"link_select link_hide";s:4:"name";s:11:"select_line";s:4:"type";s:3:"box";s:4:"size";s:1:"2";i:1;a:4:{s:8:"onchange";s:227:"if (!this.value) { document.getElementById(form::name(\'search_line\')).style.display=\'inline\'; document.getElementById(form::name(\'remark\')).style.display=document.getElementById(form::name(\'select_line\')).style.display=\'none\';}";s:7:"no_lang";s:1:"1";s:4:"name";s:2:"id";s:4:"type";s:6:"select";}i:2;a:4:{s:5:"label";s:4:"Link";s:4:"name";s:6:"create";s:4:"type";s:6:"button";s:4:"help";s:29:"click here to create the Link";}s:4:"span";s:23:" ,link_select link_hide";}i:3;a:6:{s:4:"size";s:5:"50,50";s:4:"blur";s:7:"Comment";s:4:"name";s:6:"remark";s:4:"type";s:4:"text";s:4:"help";s:28:"optional note about the Link";s:4:"span";s:13:",hide_comment";}}}','size' => '','style' => '.link_select { white-space: nowrap; } .link_hide { display: none; } -.hide_comment input { display: none; width: 99%; } -','modified' => '1216738492',); +.hide_comment input { display: none; width: 99%; }','modified' => '1258423413',); $templ_data[] = array('name' => 'etemplate.nextmatch_widget','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:8:{s:1:"A";s:3:"35%";s:1:"C";s:3:"35%";s:2:"c1";s:7:"noPrint";s:2:"c2";s:7:"noPrint";s:2:"c5";s:7:"noPrint";s:2:"h5";s:13:",!@bottom_too";s:2:"h3";s:15:",!@lettersearch";s:2:"c3";s:7:"noPrint";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:12:"@header_left";}s:1:"B";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:5:"align";s:6:"center";i:1;a:4:{s:4:"type";s:5:"label";s:5:"label";s:7:"showing";s:7:"no_lang";s:1:"1";s:4:"name";s:5:"range";}i:2;a:4:{s:4:"type";s:5:"label";s:5:"label";s:2:"of";s:7:"no_lang";s:1:"1";s:4:"name";s:5:"total";}s:4:"span";s:16:",nextmatch-range";}s:1:"C";a:3:{s:4:"type";s:8:"template";s:5:"align";s:5:"right";s:4:"name";s:13:"@header_right";}}i:2;a:3:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:5:"align";s:6:"center";s:4:"name";s:33:"etemplate.nextmatch_widget.nm_row";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:8:"onchange";s:1:"1";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";s:4:"span";s:3:"all";s:4:"name";s:12:"lettersearch";i:1;a:6:{s:4:"type";s:5:"label";s:5:"label";s:3:"All";s:5:"align";s:5:"right";s:4:"name";s:3:"all";s:6:"needed";s:1:"1";s:4:"span";s:20:",lettersearch_active";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:4;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"template";s:4:"size";s:4:"rows";s:4:"span";s:3:"all";s:5:"align";s:6:"center";s:4:"name";s:9:"@template";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:5;a:3:{s:1:"A";a:5:{s:4:"type";s:8:"template";s:4:"size";s:6:"bottom";s:4:"span";s:3:"all";s:5:"align";s:6:"center";s:4:"name";s:33:"etemplate.nextmatch_widget.nm_row";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:5;s:4:"cols";i:3;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1155978375',); @@ -149,8 +149,6 @@ $templ_data[] = array('name' => 'etemplate.tab_widget','template' => '','lang' = $templ_data[] = array('name' => 'etemplate.tab_widget.tab','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:6:{s:4:"type";s:6:"button";s:4:"span";s:21:",etemplate_tab row_on";s:5:"label";s:6:"@label";s:4:"name";s:3:"tab";s:8:"onchange";s:1:"1";s:4:"help";s:5:"@help";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:6:",,,,,0";}}','size' => ',,,,,0','style' => '','modified' => '1050260954',); -$templ_data[] = array('name' => 'etemplate.tab_widget.tab_active','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmh";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:21:",etemplate_tab_active";s:5:"label";s:6:"@label";s:4:"help";s:5:"@help";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:7:",,,,0,0";}}','size' => ',,,,0,0','style' => '.etemplate_tab_active { border-style:solid; border-width:2px 2px 0px; border-color:black; padding:6px; }','modified' => '1032907904',); - $templ_data[] = array('name' => 'etemplate.tab_widget.tab_active','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:5:{s:4:"type";s:5:"label";s:4:"span";s:24:",etemplate_tab_active th";s:5:"label";s:6:"@label";s:4:"name";s:3:"tab";s:4:"help";s:5:"@help";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:7:",,,,0,0";}}','size' => ',,,,0,0','style' => '','modified' => '1047802812',); $templ_data[] = array('name' => 'etemplate.tab_widget.tab_dom','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:6:{s:4:"type";s:5:"label";s:4:"span";s:21:",etemplate_tab row_on";s:5:"label";s:6:"@label";s:4:"name";s:3:"tab";s:8:"onchange";s:1:"1";s:4:"help";s:5:"@help";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:7:",,,,0,0";}}','size' => ',,,,0,0','style' => '','modified' => '1050260920',); @@ -171,8 +169,6 @@ $templ_data[] = array('name' => 'etemplate.test.ajax_select','template' => '','l $templ_data[] = array('name' => 'etemplate.test.duration','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:13:"date-duration";s:5:"label";s:8:"Duration";s:4:"name";s:8:"duration";s:4:"size";s:5:"h,dh%";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1117706299',); -$templ_data[] = array('name' => 'etemplate.test.grid-export','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"some cell";}}i:2;a:1:{s:1:"A";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:4:"span";s:10:",hboxClass";i:1;a:4:{s:4:"type";s:5:"label";s:4:"size";s:1:"1";s:5:"label";s:2:"1.";i:1;a:1:{s:4:"type";s:4:"hbox";}}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:2:"2.";}i:3;a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"last right";s:5:"align";s:5:"right";}}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:16:"100%,,,gridClass";s:7:"options";a:2:{i:3;s:9:"gridClass";i:0;s:4:"100%";}}}','size' => '100%,,,gridClass','style' => '','modified' => '1179507067',); - $templ_data[] = array('name' => 'etemplate.test.grid-export','template' => '','lang' => '','group' => '0','version' => '2','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"some cell";}}i:2;a:1:{s:1:"A";a:6:{s:5:"class";s:9:"hboxClass";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"size";s:1:"1";s:4:"type";s:5:"label";s:5:"label";s:2:"1.";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:2:"2.";}i:3;a:3:{s:5:"align";s:5:"right";s:4:"type";s:5:"label";s:5:"label";s:10:"last right";}}}}s:4:"cols";i:1;s:4:"rows";i:2;s:4:"size";s:16:"100%,,,gridClass";}}','size' => '100%,,,gridClass','style' => '','modified' => '1179507244',); $templ_data[] = array('name' => 'etemplate.test.infolog','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:13:"infolog-value";s:4:"name";s:4:"test";s:7:"options";a:0:{}}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1242560130',);