Author: ralfbecker
Date: Fri Sep 29 21:55:00 2006
New Revision: 22556
URL: http://www.egroupware.org/viewvc?rev=3D3D22556&view=3D3Drev
Log:
- link widgets uses now ajax to search
- new sub-type to search and select an entry of a selectable or given app
- more to come
Added:
trunk/etemplate/templates/default/link_widget.add.xet
trunk/etemplate/templates/default/link_widget.entry.xet
trunk/etemplate/templates/default/link_widget.to.xet
Removed:
trunk/etemplate/templates/default/link_widget.create.xet
trunk/etemplate/templates/default/link_widget.search.xet
Modified:
trunk/etemplate/inc/class.link_widget.inc.php
trunk/etemplate/setup/etemplates.inc.php
trunk/etemplate/templates/default/app.css
Modified: trunk/etemplate/inc/class.link_widget.inc.php
URL: http://www.egroupware.org/viewvc/trunk/etemplate/inc/class.link_widget=
=3D
.inc.php?rev=3D3D22556&r1=3D3D22555&r2=3D3D22556&view=3D3Ddiff
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/inc/class.link_widget.inc.php (original)
+++ trunk/etemplate/inc/class.link_widget.inc.php Fri Sep 29 21:55:00 2006
@@ -25,6 +25,8 @@
* - link-string: comma-separated list of link-titles with a link to its =
=3D
view method, value is like get_links() =3D
* or array with keys to_app and to_id (widget calls then get_links itsel=
=3D
f)
* - link-add: Add a new entry of the select app, which is already lin=
=3D
ked to a given entry
+ * - link-entry: Allow to select an entry of a selectable or in options =
=3D
specified app
+ * - link-apps: Select an app registerd in the link system, options: ''=
=3D
or 'add'
*
*<code>
* $content[$name] =3D3D array(
@@ -52,8 +54,9 @@
* @var array exported methods of this class
*/
var $public_functions =3D3D array(
- 'pre_process' =3D3D> True,
- 'post_process' =3D3D> True
+ 'pre_process' =3D3D> True,
+ 'post_process' =3D3D> True,
+ 'ajax_search' =3D3D> True,
);
/**
* @var array availible extensions and there names for the editor
@@ -63,14 +66,18 @@
'link-to' =3D3D> 'LinkTo',
'link-list' =3D3D> 'LinkList',
'link-string' =3D3D> 'LinkString',
- 'link-add' =3D3D> 'LinkEntry',
+ 'link-add' =3D3D> 'LinkAdd',
+ 'link-entry' =3D3D> 'LinkEntry',
+ 'link-apps' =3D3D> 'LinkApps',
);
/**
* @var boolean $debug switches debug-messages on and off
*/
var $debug =3D3D False;
/**
- * @var object $link reference to the link class
+ * reference to the link class
+ * =3D
+ * @var bolink
*/
var $link;
=3D
@@ -79,7 +86,7 @@
*
* @param string $ui '' for html
*/
- function link_widget($ui)
+ function link_widget($ui=3D3D'')
{
if (!is_object($GLOBALS['egw']->link))
{
@@ -103,7 +110,7 @@
*/
function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&=
=3D
$tmpl)
{
- $type =3D3D $cell['type'];
+ $extension_data['type'] =3D3D $type =3D3D $cell['type'];
$help =3D3D $cell['help'] ? ($value['help'] ? $value['help'] : $cell['h=
el=3D
p']) : lang('view this linked entry in its application');
=3D
if (($type =3D3D=3D3D 'link-to' || $type =3D3D=3D3D 'link-add') && ($ce=
ll['read=3D
only'] || $readonlys))
@@ -113,7 +120,7 @@
$cell =3D3D $tmpl->empty_cell();
return;
}
- if (!is_array($value) && $type !=3D3D 'link-string' && $type !=3D3D 'li=
nk')
+ if (!is_array($value) && in_array($type,array('link-to','link-list','li=
=3D
nk-add')))
{
$value =3D3D array(
'to_id' =3D3D> $value,
@@ -126,7 +133,7 @@
echo "<p>start: $cell[type][$name]::pre_process: value =3D3D"; _debug_=
ar=3D
ray($value);
echo "extension_data[$cell[type]][$name] =3D3D"; _debug_array($extensi=
on=3D
_data);
}
- switch ($type =3D3D $cell['type'])
+ switch ($cell['type'])
{
case 'link':
$cell['readonly'] =3D3D True; // set it readonly to NOT call our post_=
pr=3D
ocess function
@@ -223,6 +230,13 @@
break;
=3D
case 'link-to':
+ $GLOBALS['egw_info']['flags']['include_xajax'] =3D3D true;
+ if ($value['search_label'] && $extension_data['search_label'] !=3D3D $=
va=3D
lue['search_label']) $value['search_label'] =3D3D lang($value['search_label=
']=3D
);
+ $extension_data =3D3D $value;
+ $tpl =3D3D& new etemplate('etemplate.link_widget.to');
+ if ($value['link_label']) $tpl->set_cell_attribute('create','label',$v=
=3D
alue['link_label']);
+ if ($value['search_label']) $tpl->set_cell_attribute('search','label',=
=3D
$value['search_label']);
+ /* old request code
$value['msg'] =3D3D '';
if ($value['button'] =3D3D=3D3D 'search' && count($ids =3D3D $this->li=
nk->qu=3D
ery($value['app'],$value['query'])))
{
@@ -258,7 +272,7 @@
}
$tpl->set_cell_attribute('comment','onchange',"set_style_by_class('*'=
=3D
,'hide_comment','display',this.checked ? 'block' : 'none');");
unset($value['comment']);
- }
+ }*/
break;
=3D
case 'link-list':
@@ -309,6 +323,63 @@
}
}
break;
+
+ case 'link-entry':
+ $GLOBALS['egw_info']['flags']['include_xajax'] =3D3D true;
+ $tpl =3D3D& new etemplate('etemplate.link_widget.entry');
+ if ($value) // show pre-selected entry in select-box and not the search
+ {
+ // add selected-entry plus "new search" to the selectbox-options
+ if (($app =3D3D $cell['size']))
+ {
+ $id =3D3D $value;
+ }
+ else
+ {
+ list($app,$id) =3D3D explode(':',$value);
+ }
+ if ($id && ($title =3D3D $this->link->title($app,$id)))
+ {
+ $selectbox =3D3D& $tpl->get_widget_by_name('id');
+ $selectbox['sel_options'] =3D3D array(
+ $id =3D3D> $title,
+ '' =3D3D> lang('new search').' ...',
+ );
+ // remove link_hide class from select-box-line
+ $span =3D3D& $tpl->get_cell_attribute('select_line','span');
+ $span =3D3D str_replace('link_hide','',$span);
+ // add link_hide class to search_line
+ $span =3D3D& $tpl->get_cell_attribute('search_line','span');
+ $span .=3D3D ' link_hide';
+ unset($span);
+ }
+ }
+ if (($extension_data['app'] =3D3D $cell['size'])) // no app-selection,=
u=3D
sing app given in $cell['size']
+ {
+ $tpl->disable_cells('app'); =3D
+ $onchange =3D3D& $tpl->get_cell_attribute('search','onclick');
+ $onchange =3D3D str_replace("document.getElementById(form::name('app'=
))=3D
.value",'\''.$cell['size'].'\'',$onchange);
+ unset($onchange);
+ }
+ $value =3D3D array(
+ 'app' =3D3D> $cell['size'],
+ 'no_app_sel' =3D3D> !!$cell['size'],
+ 'id' =3D3D> $value,
+ );
+ break;
+ =3D
+ case 'link-apps':
+ $apps =3D3D $this->link->app_list($cell['size']);
+ if (!$apps) // cant do an add without apps or already created entry
+ {
+ $cell =3D3D $tmpl->empty_cell();
+ return;
+ }
+ asort($apps); // sort them alphabetic
+ $cell['sel_options'] =3D3D $apps;
+ $cell['no_lang'] =3D3D True; // already translated
+ $cell['type'] =3D3D 'select';
+ return true;
}
$cell['size'] =3D3D $cell['name'];
$cell['type'] =3D3D 'template';
@@ -345,6 +416,16 @@
{
//echo "<p>link_widget::post_process('$name',value=3D3D".print_r($value=
,t=3D
rue).",ext=3D3D".print_r($extension_data,true).",$loop,,value_in=3D3D".prin=
t_r(=3D
$value_in,true)."</p>\n";
=3D
+ switch($extension_data['type'])
+ {
+ case 'link-entry':
+ $value =3D3D $extension_data['app'] ? $value_in['id'] : $value['app']=
.'=3D
:'.$value_in['id'];
+ return !!$value_in['id'];
+ =3D
+ case 'link-apps':
+ $value =3D3D $value_in;
+ return !!$value;
+ }
$buttons =3D3D array('search','create','new','upload','attach');
while (!$button && list(,$bname) =3D3D each($buttons))
{
@@ -374,7 +455,7 @@
{
$link_id =3D3D $this->link->link($value['to_app'],$value['to_id'],
$value['app'],$value['id'],$value['remark']);
- $value['remark'] =3D3D '';
+ $value['remark'] =3D3D $value['query'] =3D3D '';
=3D
if (isset($value['primary']) && !$value['anz_links'] )
{
@@ -405,6 +486,7 @@
{
$value['primary'] =3D3D $link_id;
}
+ unset($value['comment']);
unset($value['file']);
}
else
@@ -437,4 +519,46 @@
}
return True;
}
+ =3D
+ /**
+ * ajax callback to search in $app for $pattern, result is displayed in =
=3D
$id
+ *
+ * @param string $app app-name to search
+ * @param string $pattern search-pattern
+ * @param string $id_res id of selectbox to show the result
+ * @param string $id_hide id(s) of the search-box/-line to hide after a =
=3D
successful search
+ * @param string $id_show id(s) of the select-box/-line to show after a =
=3D
successful search
+ * @param string $id_input id of the search input-field
+ */
+ function ajax_search($app,$pattern,$id_res,$id_hide,$id_show,$id_input)
+ {
+ $response =3D3D new xajaxResponse();
+ //$args =3D3D func_get_args(); $response->addAlert("link_widget::ajax_s=
ea=3D
rch('".implode("','",$args)."')");
+ =3D
+ if (!($found =3D3D $this->link->query($app,$pattern =3D3D=3D3D lang('Se=
arch')=3D
? '' : $pattern))) // ignore the blur-text
+ {
+ $response->addAlert(lang('Nothing found - try again !!!'));
+ $response->addScript("document.getElementById('$id_input').select();");
+ }
+ else
+ {
+ $script =3D3D "var select =3D3D document.getElementById('$id_res');\ns=
elec=3D
t=2Eoptions.length=3D3D0;\n";
+ foreach($found as $id =3D3D> $title)
+ {
+ $script .=3D3D "select.options[select.options.length] =3D3D new Optio=
n('"=3D
.addslashes($title)."','$id');\n";
+ }
+ $script .=3D3D "select.options[select.options.length] =3D3D new Option=
('".=3D
addslashes(lang('New search').' ...')."','');\n";
+ foreach(explode(',',$id_show) as $id)
+ {
+ $script .=3D3D "document.getElementById('$id').style.display=3D3D'inl=
ine'=3D
;\n";
+ }
+ foreach(explode(',',$id_hide) as $id)
+ {
+ $script .=3D3D "document.getElementById('$id').style.display=3D3D'non=
e';\=3D
n";
+ }
+ //$response->addAlert($script);
+ $response->addScript($script);
+ }
+ return $response->getXML();
+ }
}
Modified: trunk/etemplate/setup/etemplates.inc.php
URL: http://www.egroupware.org/viewvc/trunk/etemplate/setup/etemplates.inc.=
=3D
php?rev=3D3D22556&r1=3D3D22555&r2=3D3D22556&view=3D3Ddiff
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/setup/etemplates.inc.php (original)
+++ trunk/etemplate/setup/etemplates.inc.php Fri Sep 29 21:55:00 2006
@@ -2,7 +2,7 @@
/**
* eGroupWare - eTemplates for Application etemplate
* http://www.egroupware.org =3D
- * generated by soetemplate::dump4setup() 2006-09-25 18:00
+ * generated by soetemplate::dump4setup() 2006-09-29 23:54
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU Gene=
=3D
ral Public License
* @package etemplate
@@ -117,11 +117,16 @@
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.add','templ=
ate'=3D
=3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.2.001','=
data' =3D
=3D3D> '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=3D
:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"name";s:3:"app";s:4:"help";s:43=
=3D
:"Add a new entry of the selected application";s:5:"label";s:7:"Add new";s:=
=3D
7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"button";s:5:"label";s:3:"=
=3D
Add";s:4:"name";s:3:"add";s:4:"help";s:43:"Add a new entry of the selected =
=3D
application";s:7:"onclick";s:64:"eval(this.form.elements[form::name(\'app\'=
=3D
)].value); return false;";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}','size' =3D3D=
> =3D
'','style' =3D3D> '.redItalic { font-style: italic; color: red; }
=2Ehide_comment { display: none; }','modified' =3D3D> '1131618647',);
=3D
+$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.add','templ=
ate'=3D
=3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.3.001','=
data' =3D
=3D3D> '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=3D
:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"name";s:3:"app";s:4:"help";s:43=
=3D
:"Add a new entry of the selected application";s:5:"label";s:7:"Add new";s:=
=3D
7:"no_lang";s:1:"1";}s:1:"B";a:5:{s:4:"type";s:6:"button";s:5:"label";s:3:"=
=3D
Add";s:4:"name";s:3:"add";s:4:"help";s:43:"Add a new entry of the selected =
=3D
application";s:7:"onclick";s:64:"eval(this.form.elements[form::name(\'app\'=
=3D
)].value); return false;";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}','size' =3D3D=
> =3D
'','style' =3D3D> '','modified' =3D3D> '1159565080',);
+
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.add-test','=
temp=3D
late' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '','da=
ta' =3D3D>=3D
'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:=
=3D
1:"A";a:2:{s:4:"type";s:8:"link-add";s:4:"name";s:3:"add";}}}s:4:"rows";i:1=
=3D
;s:4:"cols";i:1;}}','size' =3D3D> '','style' =3D3D> '','modified' =3D3D> '1=
131620=3D
509',);
=3D
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.attach','te=
mpla=3D
te' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '0.9.15.=
001','da=3D
ta' =3D3D> 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:=
2:=3D
"c1";s:6:"row_on";s:2:"c2";s:7:"row_off";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";=
=3D
s:5:"label";s:5:"label";s:4:"File";}s:1:"B";a:4:{s:4:"type";s:5:"label";s:4=
=3D
:"span";s:11:",like_input";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"file[path=
=3D
]";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Attach";s:4:"name=
=3D
";s:6:"attach";s:4:"help";s:29:"click here to attach the file";}s:1:"D";a:4=
=3D
:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:3:"new";s:4=
=3D
:"help";s:36:"start a new search, cancel this link";}}i:2;a:4:{s:1:"A";a:2:=
=3D
{s:4:"type";s:5:"label";s:5:"label";s:7:"Comment";}s:1:"B";a:5:{s:4:"type";=
=3D
s:4:"text";s:4:"size";s:5:"50,50";s:4:"span";s:3:"all";s:4:"name";s:6:"rema=
=3D
rk";s:4:"help";s:28:"optional note about the Link";}s:1:"C";a:1:{s:4:"type"=
=3D
;s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"co=
=3D
ls";i:4;}}','size' =3D3D> '','style' =3D3D> '.like_input { background: whit=
e; b=3D
order: medium groove black; padding-left: 3px; padding-right: 3px; }','modi=
=3D
fied' =3D3D> '1035118591',);
=3D
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.create','te=
mpla=3D
te' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '0.9.15.=
001','da=3D
ta' =3D3D> 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:=
2:=3D
"c1";s:6:"row_on";s:2:"c2";s:7:"row_off";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";=
=3D
s:5:"label";s:4:"name";s:3:"app";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:=
=3D
"no_lang";s:1:"1";s:4:"name";s:2:"id";s:4:"help";s:28:"Select an entry to l=
=3D
ink with";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Link";s:4:=
=3D
"name";s:6:"create";s:4:"help";s:29:"click here to create the Link";}s:1:"D=
=3D
";a:4:{s:4:"type";s:6:"button";s:5:"label";s:10:"New search";s:4:"name";s:3=
=3D
:"new";s:4:"help";s:36:"start a new search, cancel this link";}}i:2;a:4:{s:=
=3D
1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Comment";}s:1:"B";a:5:{s=
=3D
:4:"type";s:4:"text";s:4:"size";s:5:"50,50";s:4:"span";s:3:"all";s:4:"name"=
=3D
;s:6:"remark";s:4:"help";s:28:"optional note about the Link";}s:1:"C";a:1:{=
=3D
s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i=
=3D
:2;s:4:"cols";i:4;}}','size' =3D3D> '','style' =3D3D> '','modified' =3D3D> =
'10350=3D
43515',);
+
+$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.entry','tem=
plat=3D
e' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.3.001'=
,'data' =3D
=3D3D> '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:=3D
{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"=
=3D
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=
=3D
:{s:4:"type";s:9:"link-apps";s:4:"name";s:3:"app";s:4:"help";s:28:"Select a=
=3D
pplication to search";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:5:"query=
=3D
";s:4:"blur";s:6:"Search";}s:4:"span";s:11:",box_inline";s:4:"name";s:11:"s=
=3D
earch_line";i:3;a:5:{s:4:"type";s:6:"button";s:4:"name";s:6:"search";s:5:"l=
=3D
abel";s:1:">";s:4:"help";s:30:"Click here to start the search";s:7:"onclick=
=3D
";s:256:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_search\',document.get=
=3D
ElementById(form::name(\'app\')).value,document.getElementById(form::name(\=
=3D
'query\')).value,form::name(\'id\'),form::name(\'search_line\'),form::name(=
=3D
\'select_line\'),form::name(\'query\')); return false;";}}i:2;a:5:{s:4:"typ=
=3D
e";s:3:"box";s:4:"size";s:1:"1";s:4:"span";s:22:",link_select link_hide";i:=
=3D
1;a:4:{s:4:"type";s:6:"select";s:4:"name";s:2:"id";s:8:"onchange";s:167:"if=
=3D
(!this.value) { document.getElementById(form::name(\'search_line\')).style=
=3D
.display=3D3D\'inline\'; document.getElementById(form::name(\'select_line\'=
))=3D
.style.display=3D3D\'none\';}";s:7:"no_lang";s:1:"1";}s:4:"name";s:11:"sele=
ct=3D
_line";}}}','size' =3D3D> '','style' =3D3D> '.link_hide { display: none; }
+','modified' =3D3D> '1159544478',);
=3D
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.list','temp=
late=3D
' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '0.9.15.00=
3','data=3D
' =3D3D> 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:2:{s:1:=
"D=3D
";s:10:",!@primary";s:2:"c1";s:3:"nmr";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:=
=3D
5:"label";s:4:"name";s:11:"${row}[app]";}s:1:"B";a:4:{s:4:"type";s:4:"hbox"=
=3D
;s:4:"size";s:5:"2,0,0";i:1;a:5:{s:4:"type";s:5:"label";s:4:"size";s:14:",@=
=3D
${row}[view]";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[title]";s:4:"he=
=3D
lp";s:41:"view this linked entry in its application";}i:2;a:4:{s:4:"type";s=
=3D
:5:"label";s:4:"span";s:15:",note_following";s:7:"no_lang";s:1:"1";s:4:"nam=
=3D
e";s:14:"${row}[remark]";}}s:1:"C";a:5:{s:4:"type";s:6:"button";s:4:"size";=
=3D
s:10:"delete.png";s:5:"label";s:6:"Unlink";s:4:"name";s:26:"unlink[$row_con=
=3D
t[link_id]]";s:4:"help";s:39:"Remove this link (not the entry itself)";}s:1=
=3D
:"D";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:18:"$row_cont[link_id]";s:4:"=
=3D
name";s:7:"primary";s:4:"help";s:45:"Select a primary contact, to show in t=
=3D
he list";}}}s:4:"rows";i:1;s:4:"cols";i:4;s:4:"size";s:12:",,,whiteback";}}=
=3D
','size' =3D3D> ',,,whiteback','style' =3D3D> '.whiteback { background: whi=
te; }
=2Enote_following { font-style: italic; padding-left: 5px; }','modified' =
=3D3D=3D
> '1035126186',);
@@ -131,8 +136,19 @@
=3D
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.search','te=
mpla=3D
te' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.0.0.0=
01','dat=3D
a' =3D3D> 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2=
:"=3D
c1";s:6:"row_on";s:2:"c3";s:7:"row_off";s:2:"h3";s:10:",@no_files";s:2:"c2"=
=3D
;s:6:"row_on";s:2:"h2";s:6:",!@msg";}i:1;a:3:{s:1:"A";a:5:{s:4:"type";s:6:"=
=3D
select";s:5:"label";s:6:"Search";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app"=
=3D
;s:4:"help";s:26:"Select an App to search in";}s:1:"B";a:4:{s:4:"type";s:4:=
=3D
"text";s:4:"size";s:2:"25";s:4:"name";s:5:"query";s:4:"help";s:22:"Enter a =
=3D
search pattern";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Sear=
=3D
ch";s:4:"name";s:6:"search";s:4:"help";s:30:"Click here to start the search=
=3D
";}}i:2;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redIt=
=3D
alic";s:4:"name";s:3:"msg";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type=
=3D
";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:2:{=
=3D
s:4:"type";s:5:"label";s:5:"label";s:11:"attach file";}s:1:"B";a:3:{s:4:"ty=
=3D
pe";s:4:"file";s:4:"name";s:4:"file";s:4:"help";s:69:"Enter filename to upl=
=3D
oad and attach, use [Browse...] to search for it";}s:1:"C";a:4:{s:4:"type";=
=3D
s:6:"button";s:5:"label";s:6:"Upload";s:4:"name";s:6:"upload";s:4:"help";s:=
=3D
29:"Click here to upload the file";}}}s:4:"rows";i:3;s:4:"cols";i:3;}}','si=
=3D
ze' =3D3D> '','style' =3D3D> '.error_msg { font-style: italic; color: red; =
}','=3D
modified' =3D3D> '1113223869',);
=3D
-$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.search','te=
mpla=3D
te' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.2.001=
','data'=3D
=3D3D> 'a:2:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2:"=
c1=3D
";s:6:"row_on";s:2:"c3";s:7:"row_off";s:2:"h3";s:10:",@no_files";s:2:"c2";s=
=3D
:6:"row_on";s:2:"h2";s:6:",!@msg";}i:1;a:4:{s:1:"A";a:4:{s:4:"type";s:6:"se=
=3D
lect";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:4:"help";s:26:"Select an=
=3D
App to search in";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"32";=
=3D
s:4:"name";s:5:"query";s:4:"help";s:22:"Enter a search pattern";s:8:"tabind=
=3D
ex";i:99;}s:1:"C";a:6:{s:4:"type";s:6:"button";s:5:"label";s:6:"Search";s:4=
=3D
:"name";s:6:"search";s:4:"help";s:30:"Click here to start the search";s:4:"=
=3D
span";s:3:"all";s:8:"tabindex";i:100;}s:1:"D";a:1:{s:4:"type";s:5:"label";}=
=3D
}i:2;a:4:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItali=
=3D
c";s:4:"name";s:3:"msg";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type";s=
=3D
:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:=
=3D
5:"label";}}i:3;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"=
=3D
Attach file";}s:1:"B";a:4:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";s:4:=
=3D
"help";s:69:"Enter filename to upload and attach, use [Browse...] to search=
=3D
for it";s:4:"size";s:2:"12";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"lab=
=3D
el";s:6:"Attach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to att=
=3D
ach the file";}s:1:"D";a:3:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comme=
=3D
nt";s:4:"help";s:28:"optional note about the Link";}}}s:4:"rows";i:3;s:4:"c=
=3D
ols";i:4;}i:1;a:6:{s:4:"type";s:4:"text";s:4:"name";s:6:"remark";s:4:"size"=
=3D
;s:5:"50,50";s:4:"span";s:13:",hide_comment";s:5:"label";s:7:"Comment";s:4:=
=3D
"help";s:28:"optional note about the Link";}}','size' =3D3D> '','style' =3D=
3D> =3D
'=2EredItalic { font-style: italic; color: red; }
+$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.search','te=
mpla=3D
te' =3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.2.001=
','data'=3D
=3D3D> 'a:2:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:5:{s:2:"=
c1=3D
";s:6:"row_on";s:2:"c3";s:7:"row_off";s:2:"h3";s:10:",@no_files";s:2:"c2";s=
=3D
:6:"row_on";s:2:"h2";s:6:",!@msg";}i:1;a:4:{s:1:"A";a:4:{s:4:"type";s:6:"se=
=3D
lect";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:4:"help";s:26:"Select an=
=3D
App to search in";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"32";=
=3D
s:4:"name";s:5:"query";s:4:"help";s:22:"Enter a search pattern";s:8:"tabind=
=3D
ex";i:99;}s:1:"C";a:6:{s:4:"type";s:6:"button";s:5:"label";s:6:"Search";s:4=
=3D
:"name";s:6:"search";s:4:"help";s:30:"Click here to start the search";s:4:"=
=3D
span";s:3:"all";s:8:"tabindex";i:100;}s:1:"D";a:1:{s:4:"type";s:5:"label";}=
=3D
}i:2;a:4:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItali=
=3D
c";s:4:"name";s:3:"msg";s:5:"align";s:6:"center";}s:1:"B";a:1:{s:4:"type";s=
=3D
:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:=
=3D
5:"label";}}i:3;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"=
=3D
Attach file";}s:1:"B";a:4:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";s:4:=
=3D
"help";s:69:"Enter filename to upload and attach, use [Browse...] to search=
=3D
for it";s:4:"size";s:2:"12";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"lab=
=3D
el";s:6:"Attach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to att=
=3D
ach the file";}s:1:"D";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comme=
=3D
nt";s:4:"help";s:28:"optional note about the Link";s:8:"onchange";s:81:"set=
=3D
_style_by_class(\'*\',\'hide_comment\',\'display\',this.checked ? \'block\'=
=3D
: \'none\');";}}}s:4:"rows";i:3;s:4:"cols";i:4;}i:1;a:6:{s:4:"type";s:4:"t=
=3D
ext";s:4:"name";s:6:"remark";s:4:"size";s:5:"50,50";s:4:"span";s:13:",hide_=
=3D
comment";s:5:"label";s:7:"Comment";s:4:"help";s:28:"optional note about the=
=3D
Link";}}','size' =3D3D> '','style' =3D3D> '.redItalic { font-style: italic=
; co=3D
lor: red; }
=2Ehide_comment { display: none; }','modified' =3D3D> '1131608831',);
+
+$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.to','templa=
te' =3D
=3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.3.000','d=
ata' =3D3D=3D
> '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:=
=3D
1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"siz=
=3D
e";s:1:"2";i:1;a:6:{s:4:"type";s:3:"box";s:4:"size";s:6:"3,,0,0";i:1;a:5:{s=
=3D
:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:9:"link-apps"=
=3D
;s:4:"name";s:3:"app";s:4:"help";s:28:"Select application to search";s:5:"l=
=3D
abel";s:13:"@search_label";}i:2;a:2:{s:4:"type";s:4:"text";s:4:"name";s:5:"=
=3D
query";}i:3;a:5:{s:4:"type";s:6:"button";s:4:"name";s:5:"query";s:5:"label"=
=3D
;s:1:">";s:4:"help";s:6:"Search";s:7:"onclick";s:256:"xajax_doXMLHTTP(\'ete=
=3D
mplate.link_widget.ajax_search\',document.getElementById(form::name(\'app\'=
=3D
)).value,document.getElementById(form::name(\'query\')).value,form::name(\'=
=3D
id\'),form::name(\'search_line\'),form::name(\'select_line\'),form::name(\'=
=3D
query\')); return false;";}}i:2;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{=
=3D
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:"=
=3D
file";s:4:"name";s:4:"file";s:4:"help";s:69:"Enter filename to upload and a=
=3D
ttach, use [Browse...] to search for it";s:4:"size";s:2:"12";s:5:"label";s:=
=3D
11:"attach file";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Att=
=3D
ach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to attach the file=
=3D
";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comment";s:4:"hel=
=3D
p";s:28:"optional note about the Link";s:8:"onchange";s:88:"document.getEle=
=3D
mentById(form::name(\'remark\')).style.display=3D3Dthis.checked?\'block\':\=
'n=3D
one\';";}}}s:4:"rows";i:1;s:4:"cols";i:3;}s:4:"name";s:11:"search_line";i:3=
=3D
;a:6:{s:4:"type";s:4:"text";s:4:"name";s:6:"remark";s:4:"size";s:5:"50,50";=
=3D
s:4:"span";s:13:",hide_comment";s:4:"help";s:28:"optional note about the Li=
=3D
nk";s:4:"blur";s:7:"Comment";}}i:2;a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:=
=3D
1:"3";s:4:"span";s:22:",link_select link_hide";i:1;a:4:{s:4:"type";s:6:"sel=
=3D
ect";s:4:"name";s:2:"id";s:8:"onchange";s:167:"if (!this.value) { document.=
=3D
getElementById(form::name(\'search_line\')).style.display=3D3D\'inline\'; d=
oc=3D
ument.getElementById(form::name(\'select_line\')).style.display=3D3D\'none\=
';=3D
}";s:7:"no_lang";s:1:"1";}s:4:"name";s:11:"select_line";i:2;a:4:{s:4:"type"=
=3D
;s:6:"button";s:5:"label";s:4:"Link";s:4:"name";s:6:"create";s:4:"help";s:2=
=3D
9:"click here to create the Link";}i:3;a:6:{s:4:"type";s:4:"text";s:4:"size=
=3D
";s:5:"50,50";s:4:"name";s:6:"remark";s:4:"help";s:28:"optional note about =
=3D
the Link";s:4:"blur";s:7:"comment";s:4:"span";s:13:",link_comment";}}}}','s=
=3D
ize' =3D3D> '','style' =3D3D> '.link_select select { }
+=2Elink_comment { display: block; }
+=2Elink_hide { display: none; }
+=2EredItalic { font-style: italic; color: red; }
+=2Ehide_comment input { display: none; }','modified' =3D3D> '1159559249',);
+
+$templ_data[] =3D3D array('name' =3D3D> 'etemplate.link_widget.to','templa=
te' =3D
=3D3D> '','lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '1.3.001','d=
ata' =3D3D=3D
> '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:=
=3D
1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"siz=
=3D
e";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=
=3D
:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:4:"type";s:9:"link-apps"=
=3D
;s:4:"name";s:3:"app";s:4:"help";s:28:"Select application to search";s:5:"l=
=3D
abel";s:13:"@search_label";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:5:"=
=3D
query";s:4:"blur";s:6:"Search";}i:3;a:5:{s:4:"type";s:6:"button";s:4:"name"=
=3D
;s:5:"query";s:5:"label";s:1:">";s:4:"help";s:30:"Click here to start the s=
=3D
earch";s:7:"onclick";s:281:"xajax_doXMLHTTP(\'etemplate.link_widget.ajax_se=
=3D
arch\',document.getElementById(form::name(\'app\')).value,document.getEleme=
=3D
ntById(form::name(\'query\')).value,form::name(\'id\'),form::name(\'search_=
=3D
line\'),form::name(\'remark\')+\',\'+form::name(\'select_line\'),form::name=
=3D
(\'query\')); return false;";}}i:2;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:=
=3D
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:=
=3D
4:"file";s:4:"name";s:4:"file";s:4:"help";s:69:"Enter filename to upload an=
=3D
d attach, use [Browse...] to search for it";s:4:"size";s:2:"12";s:5:"label"=
=3D
;s:11:"attach file";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"=
=3D
Attach";s:4:"name";s:6:"attach";s:4:"help";s:29:"Click here to attach the f=
=3D
ile";}s:1:"C";a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"comment";s:4:"=
=3D
help";s:28:"optional note about the Link";s:8:"onchange";s:88:"document.get=
=3D
ElementById(form::name(\'remark\')).style.display=3D3Dthis.checked?\'block\=
':=3D
\'none\';";}}}s:4:"rows";i:1;s:4:"cols";i:3;}s:4:"name";s:11:"search_line";=
=3D
}i:2;a:6:{s:4:"type";s:3:"box";s:4:"size";s:1:"2";s:4:"span";s:22:",link_se=
=3D
lect link_hide";i:1;a:4:{s:4:"type";s:6:"select";s:4:"name";s:2:"id";s:8:"o=
=3D
nchange";s:227:"if (!this.value) { document.getElementById(form::name(\'sea=
=3D
rch_line\')).style.display=3D3D\'inline\'; document.getElementById(form::na=
me=3D
(\'remark\')).style.display=3D3Ddocument.getElementById(form::name(\'select=
_l=3D
ine\')).style.display=3D3D\'none\';}";s:7:"no_lang";s:1:"1";}s:4:"name";s:1=
1:=3D
"select_line";i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Link";s:4:"=
=3D
name";s:6:"create";s:4:"help";s:29:"click here to create the Link";}}i:3;a:=
=3D
6:{s:4:"type";s:4:"text";s:4:"name";s:6:"remark";s:4:"size";s:5:"50,50";s:4=
=3D
:"span";s:13:",hide_comment";s:4:"help";s:28:"optional note about the Link"=
=3D
;s:4:"blur";s:7:"Comment";}}}','size' =3D3D> '','style' =3D3D> '.link_selec=
t { =3D
white-space: nowrap; }
+=2Elink_hide { display: none; }
+=2Ehide_comment input { display: none; width: 99%; }
+','modified' =3D3D> '1159565799',);
=3D
$templ_data[] =3D3D array('name' =3D3D> 'etemplate.nextm*','template' =3D3=
D> '',=3D
'lang' =3D3D> '','group' =3D3D> '0','version' =3D3D> '','data' =3D3D> 'a:1:=
{i:0;a:4=3D
:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4=
=3D
:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' =3D3D> '','=
st=3D
yle' =3D3D> '','modified' =3D3D> '1155977979',);
=3D
Modified: trunk/etemplate/templates/default/app.css
URL: http://www.egroupware.org/viewvc/trunk/etemplate/templates/default/app=
=3D
.css?rev=3D3D22556&r1=3D3D22555&r2=3D3D22556&view=3D3Ddiff
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/templates/default/app.css (original)
+++ trunk/etemplate/templates/default/app.css Fri Sep 29 21:55:00 2006
@@ -1,5 +1,5 @@
/* $Id$ */
=2EredItalic { color: red; font-style: italic; }
=2Egray { color: gray; }
-=2EclickWidgetToEdit { cursor: pointer; }
+=2EclickWidgetToEdit { cursor: pointer; display: inline; }
=2EclickWidgetToEdit:hover { background-color: pink; }
Added: trunk/etemplate/templates/default/link_widget.add.xet
URL: http://www.egroupware.org/viewvc/trunk/etemplate/templates/default/lin=
=3D
k_widget.add.xet?rev=3D3D22556&view=3D3Dauto
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/templates/default/link_widget.add.xet (added)
+++ trunk/etemplate/templates/default/link_widget.add.xet Fri Sep 29 21:55:=
=3D
00 2006
@@ -1,0 +1,20 @@
+<?xml version=3D3D"1.0"?>
+<!-- $Id$ -->
+<overlay>
+ <template id=3D3D"etemplate.link_widget.add" template=3D3D"" lang=3D3D"" =
group=3D
=3D3D"0" version=3D3D"1.3.001">
+ <grid>
+ <columns>
+ <column/>
+ <column/>
+ </columns>
+ <rows>
+ <row>
+ <menulist>
+ <menupopup id=3D3D"app" statustext=3D3D"Add a new entry of the selec=
ted =3D
application" label=3D3D"Add new" no_lang=3D3D"1"/>
+ </menulist>
+ <button label=3D3D"Add" id=3D3D"add" statustext=3D3D"Add a new entry =
of the=3D
selected application" onclick=3D3D"eval(this.form.elements[form::name('app=
')=3D
]=2Evalue); return false;"/>
+ </row>
+ </rows>
+ </grid>
+ </template>
+</overlay>
Added: trunk/etemplate/templates/default/link_widget.entry.xet
URL: http://www.egroupware.org/viewvc/trunk/etemplate/templates/default/lin=
=3D
k_widget.entry.xet?rev=3D3D22556&view=3D3Dauto
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/templates/default/link_widget.entry.xet (added)
+++ trunk/etemplate/templates/default/link_widget.entry.xet Fri Sep 29 21:5=
=3D
5:00 2006
@@ -1,0 +1,22 @@
+<?xml version=3D3D"1.0"?>
+<!-- $Id$ -->
+<overlay>
+ <template id=3D3D"etemplate.link_widget.entry" template=3D3D"" lang=3D3D"=
" grou=3D
p=3D3D"0" version=3D3D"1.3.001">
+ <box rows=3D3D"1" cols=3D3D"1">
+ <box options=3D3D"0,0" class=3D3D"box_inline" id=3D3D"search_line">
+ <link-apps id=3D3D"app" statustext=3D3D"Select application to search"/>
+ <textbox id=3D3D"query" blur=3D3D"Search"/>
+ <button id=3D3D"search" label=3D3D">" statustext=3D3D"Click here to=
start=3D
the search" onclick=3D3D"xajax_doXMLHTTP('etemplate.link_widget.ajax_searc=
h'=3D
,document.getElementById(form::name('app')).value,document.getElementById(f=
=3D
orm::name('query')).value,form::name('id'),form::name('search_line'),form::=
=3D
name('select_line'),form::name('query')); return false;"/>
+ </box>
+ <box class=3D3D"link_select link_hide" id=3D3D"select_line">
+ <menulist>
+ <menupopup id=3D3D"id" onchange=3D3D"if (!this.value) { document.getE=
leme=3D
ntById(form::name('search_line')).style.display=3D3D'inline'; document.getE=
le=3D
mentById(form::name('select_line')).style.display=3D3D'none';}" no_lang=3D3=
D"1"=3D
/>
+ </menulist>
+ </box>
+ </box>
+ <styles>
+ .link_hide { display: none; }
+
+ </styles>
+ </template>
+</overlay>
Added: trunk/etemplate/templates/default/link_widget.to.xet
URL: http://www.egroupware.org/viewvc/trunk/etemplate/templates/default/lin=
=3D
k_widget.to.xet?rev=3D3D22556&view=3D3Dauto
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
=3D3D=3D3D=3D3D
--- trunk/etemplate/templates/default/link_widget.to.xet (added)
+++ trunk/etemplate/templates/default/link_widget.to.xet Fri Sep 29 21:55:0=
=3D
0 2006
@@ -1,0 +1,42 @@
+<?xml version=3D3D"1.0"?>
+<!-- $Id$ -->
+<overlay>
+ <template id=3D3D"etemplate.link_widget.to" template=3D3D"" lang=3D3D"" g=
roup=3D
=3D3D"0" version=3D3D"1.3.001">
+ <box rows=3D3D"1" cols=3D3D"1">
+ <box options=3D3D"0,0" id=3D3D"search_line">
+ <hbox>
+ <link-apps id=3D3D"app" statustext=3D3D"Select application to search"=
lab=3D
el=3D3D"@search_label"/>
+ <textbox id=3D3D"query" blur=3D3D"Search"/>
+ <button id=3D3D"query" label=3D3D">" statustext=3D3D"Click here to=
start=3D
the search" onclick=3D3D"xajax_doXMLHTTP('etemplate.link_widget.ajax_searc=
h'=3D
,document.getElementById(form::name('app')).value,document.getElementById(f=
=3D
orm::name('query')).value,form::name('id'),form::name('search_line'),form::=
=3D
name('remark')+','+form::name('select_line'),form::name('query')); return f=
=3D
alse;"/>
+ </hbox>
+ <grid>
+ <columns>
+ <column/>
+ <column/>
+ <column/>
+ </columns>
+ <rows>
+ <row disabled=3D3D"@no_files">
+ <file id=3D3D"file" statustext=3D3D"Enter filename to upload and at=
tach=3D
, use [Browse...] to search for it" options=3D3D"12" label=3D3D"attach file=
"/>
+ <button label=3D3D"Attach" id=3D3D"attach" statustext=3D3D"Click he=
re to =3D
attach the file"/>
+ <checkbox id=3D3D"comment" statustext=3D3D"optional note about the =
Link=3D
" onchange=3D3D"document.getElementById(form::name('remark')).style.display=
=3D
=3D3Dthis.checked?'block':'none';"/>
+ </row>
+ </rows>
+ </grid>
+ </box>
+ <box class=3D3D"link_select link_hide" id=3D3D"select_line">
+ <menulist>
+ <menupopup id=3D3D"id" onchange=3D3D"if (!this.value) { document.getE=
leme=3D
ntById(form::name('search_line')).style.display=3D3D'inline'; document.getE=
le=3D
mentById(form::name('remark')).style.display=3D3Ddocument.getElementById(fo=
rm=3D
::name('select_line')).style.display=3D3D'none';}" no_lang=3D3D"1"/>
+ </menulist>
+ <button label=3D3D"Link" id=3D3D"create" statustext=3D3D"click here to=
creat=3D
e the Link"/>
+ </box>
+ <textbox id=3D3D"remark" size=3D3D"50" maxlength=3D3D"50" class=3D3D"hi=
de_comme=3D
nt" statustext=3D3D"optional note about the Link" blur=3D3D"Comment"/>
+ </box>
+ <styles>
+ .link_select { white-space: nowrap; }
+=2Elink_hide { display: none; }
+=2Ehide_comment input { display: none; width: 99%; }
+
+ </styles>
+ </template>
+</overlay>
|