*** empty log message ***
This commit is contained in:
parent
a261746cb8
commit
d81941a8c8
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
Author : $Author: sebastian $
|
||||
Version : $Revision: 1.3 $
|
||||
Version : $Revision: 1.4 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/Attic/conf.php,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
|
|
@ -2979,7 +2979,7 @@
|
|||
|
||||
* libs/Smarty.class.php
|
||||
libs/Smarty_Compiler.class.php:
|
||||
added CVS $Id: ChangeLog,v 1.2 2005/02/08 11:39:30 sebastian Exp $
|
||||
added CVS $Id: ChangeLog,v 1.3 2005/02/08 15:09:25 sebastian Exp $
|
||||
|
||||
2003-03-31 Messju Mohr <messju@lammfellpuschen.de>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* @package Smarty
|
||||
*/
|
||||
|
||||
/* $Id: Config_File.class.php,v 1.2 2005/02/08 11:39:30 sebastian Exp $ */
|
||||
/* $Id: Config_File.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
|
||||
|
||||
/**
|
||||
* Config file reading class
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
* @version 2.6.6
|
||||
*/
|
||||
|
||||
/* $Id: Smarty.class.php,v 1.2 2005/02/08 11:39:30 sebastian Exp $ */
|
||||
/* $Id: Smarty.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
|
||||
|
||||
/**
|
||||
* DIR_SEP isn't used anymore, but third party apps might
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* @package Smarty
|
||||
*/
|
||||
|
||||
/* $Id: Smarty_Compiler.class.php,v 1.2 2005/02/08 11:39:31 sebastian Exp $ */
|
||||
/* $Id: Smarty_Compiler.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
|
||||
|
||||
/**
|
||||
* Template compiling class
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!-- $Id: smarty-dynamic-fancygroup.tpl,v 1.2 2005/02/08 11:39:31 sebastian Exp $ -->
|
||||
<!-- $Id: smarty-dynamic-fancygroup.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
|
||||
|
||||
<tr>
|
||||
<td valign="top" align="right">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!-- $Id: smarty-dynamic-green.tpl,v 1.2 2005/02/08 11:39:31 sebastian Exp $ -->
|
||||
<!-- $Id: smarty-dynamic-green.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
|
||||
|
||||
<tr>
|
||||
<td align="right" valign="top" class="green"><b>{$element.label}:</b></td>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!-- $Id: smarty-dynamic.tpl,v 1.2 2005/02/08 11:39:31 sebastian Exp $ -->
|
||||
<!-- $Id: smarty-dynamic.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Smarty template for Array renderer</title>
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<script type='text/javascript'>
|
||||
{literal}
|
||||
|
||||
function displayRow(row)
|
||||
{
|
||||
document.getElementById('searchRow_' + row).style.visibility = 'visible';
|
||||
document.getElementById('searchRow_' + row).style.height = '30px';
|
||||
}
|
||||
|
||||
function addRow()
|
||||
{
|
||||
if (document.forms['search'].elements['counter'].value < document.forms['search'].elements['max_rows'].value) {
|
||||
document.forms['search'].elements['counter'].value++;
|
||||
displayRow(document.forms['search'].elements['counter'].value);
|
||||
return true;
|
||||
} else {
|
||||
alert('Maximum reached');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function hideRow(row)
|
||||
{
|
||||
document.getElementById('searchRow_' + row).style.visibility = 'hidden';
|
||||
document.getElementById('searchRow_' + row).style.height = '0px';
|
||||
document.forms['search'].elements['row_' + Number(row) + '[0]'].value = '';
|
||||
document.forms['search'].elements['row_' + Number(row) + '[1]'].value = '';
|
||||
document.forms['search'].elements['row_' + Number(row) + '[2]'].value = '';
|
||||
}
|
||||
|
||||
function dropRow(row)
|
||||
{
|
||||
var n;
|
||||
for (n=row; n<document.forms['search'].elements['counter'].value; n++) {
|
||||
document.forms['search'].elements['row_' + Number(n) + '[0]'].value = document.forms['search'].elements['row_' + (Number(n)+1) + '[0]'].value;
|
||||
document.forms['search'].elements['row_' + Number(n) + '[1]'].value = document.forms['search'].elements['row_' + (Number(n)+1) + '[1]'].value;
|
||||
document.forms['search'].elements['row_' + Number(n) + '[2]'].value = document.forms['search'].elements['row_' + (Number(n)+1) + '[2]'].value;
|
||||
}
|
||||
document.forms['search'].elements['counter'].value--;
|
||||
hideRow(Number(n));
|
||||
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
{*Smarty template*}
|
||||
|
||||
{include file="script/search.js.tpl"}
|
||||
|
||||
{if $showSearchForm}
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!-- $Id: smarty-static.tpl,v 1.3 2005/02/08 11:39:31 sebastian Exp $ -->
|
||||
<!-- $Id: smarty-static.tpl,v 1.4 2005/02/08 15:09:25 sebastian Exp $ -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Smarty template for ArraySmarty renderer: 2 column layout example</title>
|
||||
|
|
|
@ -307,13 +307,12 @@ class uiBrowser extends uiBase {
|
|||
*/
|
||||
function getSearchForm($id, &$formdata, &$mask)
|
||||
{
|
||||
$rowsBegin = ($formdata['counter'] ? $formdata['counter']-1 : UI_SEARCH_MIN_ROWS);
|
||||
$form = new HTML_QuickForm('search', UI_STANDARD_FORM_METHOD, UI_BROWSER);
|
||||
$form->setConstants(array('id'=>$id, 'counter'=>$rowsBegin+1));
|
||||
$form->setConstants(array('id'=>$id, 'counter'=>($formdata['counter'] ? $formdata['counter'] : UI_SEARCH_MIN_ROWS)));
|
||||
|
||||
foreach ($mask['mData']['tabs']['group']['group'] as $k=>$v) {
|
||||
foreach ($mask['mData']['pages'][$v] as $val){
|
||||
$options[$val['element']] = $val['element'];
|
||||
$col1[$val['element']] = $val['element'];
|
||||
if (isset($val['relation']))
|
||||
$col2[$val['element']] = $mask['relations'][$val['relation']];
|
||||
else
|
||||
|
@ -321,19 +320,17 @@ class uiBrowser extends uiBase {
|
|||
};
|
||||
};
|
||||
|
||||
$col1 = $options;
|
||||
|
||||
for($n=1; $n<=UI_SEARCH_MAX_ROWS; $n++) {
|
||||
unset ($group);
|
||||
|
||||
$form->addElement('static', 's1', NULL, "<div id='searchRow_$n'>");
|
||||
|
||||
if ($n>$rowsBegin) $form->addElement('static', 's1_style', NULL, "<style type='text/css'>#searchRow_$n {visibility : hidden; height : 0px;}</style>");
|
||||
if ($n>($formdata['counter'] ? $formdata['counter'] : UI_SEARCH_MIN_ROWS)) $form->addElement('static', 's1_style', NULL, "<style type='text/css'>#searchRow_$n {visibility : hidden; height : 0px;}</style>");
|
||||
$sel = &$form->createElement('hierselect', "row_$n", NULL);
|
||||
$sel->setOptions(array($col1, $col2));
|
||||
$group[] = &$sel;
|
||||
$group[] = &$form->createElement('text', 'criteria['.$n.']', NULL);
|
||||
$group[] = &$form->createElement('button', "dropRow_$n", 'Drop', array('onClick' => "document.getElementById('searchRow_$n').style.visibility = 'hidden'; document.getElementById('searchRow_$n').style.height = '0px'"));
|
||||
$group[] = &$form->createElement('text', 'row_'.$n.'[2]', NULL);
|
||||
$group[] = &$form->createElement('button', "dropRow_$n", 'Drop', array('onClick' => "dropRow('$n')"));
|
||||
$form->addGroup($group);
|
||||
|
||||
$form->addElement('static', 's2', NULL, "</div id='searchRow_$n'>");
|
||||
|
@ -363,16 +360,16 @@ class uiBrowser extends uiBase {
|
|||
*/
|
||||
function getSearchRes($id, &$formdata)
|
||||
{
|
||||
foreach ($formdata['criteria'] as $key=>$val) {
|
||||
if (strlen($val)) {
|
||||
$critArr[] = array('cat' => $formdata['searchBy'][$key],
|
||||
'op' => $formdata['relation'][$key],
|
||||
'val' => $val
|
||||
foreach ($formdata as $key=>$val) {
|
||||
if (is_array($val) && strlen($val[2])) {
|
||||
$critArr[] = array('cat' => $val[0],
|
||||
'op' => $val[1],
|
||||
'val' => $val[2]
|
||||
);
|
||||
}
|
||||
}
|
||||
$searchCriteria = array('filetype' => 'audioclip',
|
||||
'operator' => 'or',
|
||||
'operator' => $formdata['operator'],
|
||||
'conditions'=> $critArr
|
||||
);
|
||||
|
||||
|
|
|
@ -683,31 +683,25 @@ $ui_fmask = array(
|
|||
'type' => 'hidden'
|
||||
),
|
||||
array(
|
||||
'element' => 'addRow',
|
||||
'type' => 'button',
|
||||
'label' => 'One more Row',
|
||||
'attributes' => array('onClick' => 'showSearchRow()'),
|
||||
'groupit' => TRUE,
|
||||
'element' => 'max_rows',
|
||||
'type' => 'hidden',
|
||||
'constant' => UI_SEARCH_MAX_ROWS
|
||||
),
|
||||
array(
|
||||
'element' => 'JS',
|
||||
'type' => 'static',
|
||||
'text' => "<script langauge='javascript'>
|
||||
function showSearchRow()
|
||||
{
|
||||
var counter;
|
||||
|
||||
counter = document.forms['search'].elements['counter'].value
|
||||
|
||||
if (counter <= ".UI_SEARCH_MAX_ROWS.") {
|
||||
document.forms['search'].elements['counter'].value = Number(counter)+1;
|
||||
showRow = new Function('show', \"document.getElementById('searchRow_\" + counter + \"').style.visibility='visible'; document.getElementById('searchRow_\" + counter + \"').style.height='30px';\");
|
||||
showRow();
|
||||
} else {
|
||||
alert('Maximum reached');
|
||||
}
|
||||
}
|
||||
</script>",
|
||||
'element' => 'operator',
|
||||
'type' => 'select',
|
||||
'label' => 'Operator',
|
||||
'options' => array(
|
||||
'or' => 'Or',
|
||||
'and' => 'And',
|
||||
)
|
||||
),
|
||||
array(
|
||||
'element' => 'addrow',
|
||||
'type' => 'button',
|
||||
'label' => 'One more Row',
|
||||
'attributes' => array('onClick' => 'addRow()'),
|
||||
'groupit' => TRUE,
|
||||
),
|
||||
array(
|
||||
'element' => 'doSearch',
|
||||
|
@ -715,13 +709,13 @@ $ui_fmask = array(
|
|||
'label' => 'Submit',
|
||||
'groupit' => TRUE,
|
||||
),
|
||||
array('group' => array('addRow', 'doSearch')
|
||||
array('group' => array('addrow', 'doSearch')
|
||||
),
|
||||
),
|
||||
'relations' => array(
|
||||
'standard' => array(
|
||||
'full' => 'full',
|
||||
'partial' => 'partial',
|
||||
'full' => 'full',
|
||||
'prefix' => 'prefix',
|
||||
'=' => '=' ,
|
||||
'<' => '<',
|
||||
|
@ -730,8 +724,8 @@ $ui_fmask = array(
|
|||
'>=' => '>='
|
||||
),
|
||||
1 => array(
|
||||
'full' => 'full',
|
||||
'partial' => 'partial',
|
||||
'full' => 'full',
|
||||
'prefix' => 'prefix',
|
||||
'=' => '='
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue