*** empty log message ***

This commit is contained in:
sebastian 2005-02-09 16:53:43 +00:00
parent 60461627c3
commit 13491a3309
24 changed files with 139 additions and 376 deletions

View File

@ -23,7 +23,7 @@
Author : $Author: sebastian $
Version : $Revision: 1.4 $
Version : $Revision: 1.5 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/Attic/conf.php,v $
------------------------------------------------------------------------------*/

View File

@ -1,14 +0,0 @@
<?
void constructor HTML_QuickForm_text::HTML_QuickForm_text ([string $elementName = NULL [, string $elementLabel = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_textarea::HTML_QuickForm_textarea ([string $elementName = NULL [, mixed $elementLabel = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_submit::HTML_QuickForm_submit ([string $elementName = NULL [, string $value = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_reset::HTML_QuickForm_reset ([string $elementName = NULL [, string $value = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_button::HTML_QuickForm_button ([string $elementName = NULL [, string $value = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_password::HTML_QuickForm_password ([string $elementName = NULL [, string $elementLabel = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_file::HTML_QuickForm_file ([string $elementName = NULL [, string $elementLabel = NULL [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_hidden::HTML_QuickForm_hidden ([string $elementName = NULL [, string $value = '' [, mixed $attributes = NULL]]])
void constructor HTML_QuickForm_select::HTML_QuickForm_select ([string $elementName = NULL [, mixed $elementLabel = NULL [, mixed $options = NULL [, mixed $attributes = NULL]]]])
void constructor HTML_QuickForm_date::HTML_QuickFormDate ([string $elementName = NULL [, mixed $elementLabel = NULL [, array $options = array() [, mixed $attributes = NULL]]]])
void constructor HTML_QuickForm_checkbox::HTML_QuickForm_checkbox ([string $elementName = NULL [, string $elementLabel = NULL [, string $text = '' [, mixed $attributes = NULL]]]])
void constructor HTML_QuickForm_radio::HTML_QuickForm_radio ([string $elementName = NULL [, mixed $elementLabel = NULL [, string $text = NULL [, string $value = NULL [, mixed $attributes = NULL]]]]])
?>

View File

@ -2979,7 +2979,7 @@
* libs/Smarty.class.php
libs/Smarty_Compiler.class.php:
added CVS $Id: ChangeLog,v 1.3 2005/02/08 15:09:25 sebastian Exp $
added CVS $Id: ChangeLog,v 1.4 2005/02/09 16:50:18 sebastian Exp $
2003-03-31 Messju Mohr <messju@lammfellpuschen.de>

View File

@ -25,7 +25,7 @@
* @package Smarty
*/
/* $Id: Config_File.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
/* $Id: Config_File.class.php,v 1.4 2005/02/09 16:50:18 sebastian Exp $ */
/**
* Config file reading class

View File

@ -30,7 +30,7 @@
* @version 2.6.6
*/
/* $Id: Smarty.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
/* $Id: Smarty.class.php,v 1.4 2005/02/09 16:50:18 sebastian Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might

View File

@ -26,7 +26,7 @@
* @package Smarty
*/
/* $Id: Smarty_Compiler.class.php,v 1.3 2005/02/08 15:09:25 sebastian Exp $ */
/* $Id: Smarty_Compiler.class.php,v 1.4 2005/02/09 16:50:18 sebastian Exp $ */
/**
* Template compiling class

View File

@ -1,178 +0,0 @@
<?php
$start=array(
'hour' => date('H'),
'minute'=> date('m'),
'second'=> date('s')
);
?>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tomleung (lok_2000_tom@hotmail.com) This tag should not be removed-->
<!--Server time ticking clock v2.0 Updated by js-x.com-->
function MakeArrayday(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
this[i] = "";
return this;
}
function MakeArraymonth(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
this[i] = "";
return this;
}
var hours;
var minutes;
var seconds;
var timer=null;
function sClock()
{
hours=<?php echo $start['hour']; ?>;
minutes=<?php echo $start['minute']; ?>;
seconds=<?php echo $start['second']; ?>;
if(timer){clearInterval(timer);timer=null;}
timer=setInterval("work();",1000);
}
function twoDigit(_v)
{
if(_v<10)_v="0"+_v;
return _v;
}
function work()
{
if (!document.layers && !document.all && !document.getElementById) return;
var runTime = new Date();
var dn = "AM";
var shours = hours;
var sminutes = minutes;
var sseconds = seconds;
if (shours >= 12)
{
dn = "PM";
shours-=12;
}
if (!shours) shours = 12;
sminutes=twoDigit(sminutes);
sseconds=twoDigit(sseconds);
shours =twoDigit(shours );
movingtime = ""+ shours + ":" + sminutes +":"+sseconds+"" + dn;
if (document.getElementById)
document.getElementById("servertime").innerHTML=movingtime;
else if (document.layers)
{
document.layers.clock.document.open();
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all)
clock.innerHTML = movingtime;
if(++seconds>59)
{
seconds=0;
if(++minutes>59)
{
minutes=0;
if(++hours>23)
{
hours=0;
}
}
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tomleung (lok_2000_tom@hotmail.com) This tag should not be removed-->
<!-- Local time ticking clock v1.0 changed by Sebastian Goebel using above script-->
function lMakeArrayday(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
this[i] = "";
return this;
}
function lMakeArraymonth(size)
{
this.length = size;
for(var i = 1; i <= size; i++)
this[i] = "";
return this;
}
var hours2;
var minutes2;
var seconds2;
var ltimer=null;
function lClock()
{
var tDate = new Date();
lhours = tDate.getHours();
lminutes = tDate.getMinutes();
lseconds = tDate.getSeconds();
if(ltimer){clearInterval(ltimer);ltimer=null;}
ltimer=setInterval("lwork();",1000);
}
function ltwoDigitl(_v)
{
if(_v<10)_v="0"+_v;
return _v;
}
function lwork()
{
if (!document.layers && !document.all && !document.getElementById) return;
var runTime = new Date();
var dn = "AM";
var shours = lhours;
var sminutes = lminutes;
var sseconds = lseconds;
if (shours >= 12)
{
dn = "PM";
shours-=12;
}
if (!shours) shours = 12;
sminutes=twoDigit(sminutes);
sseconds=twoDigit(sseconds);
shours =twoDigit(shours );
movingtime = ""+ shours + ":" + sminutes +":"+sseconds+"" + dn;
if (document.getElementById)
document.getElementById("localtime").innerHTML=movingtime;
else if (document.layers)
{
document.layers.clock.document.open();
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all)
clock.innerHTML = movingtime;
if(++lseconds>59)
{
lseconds=0;
if(+l+minutes>59)
{
lminutes=0;
if(++lhours>23)
{
lhours=0;
}
}
}
}
</script>
</head>
<body onLoad="sClock(); lClock();">
server time is: <span id=servertime style="position:relative;"></span>
<br>
local time is: &nbsp;&nbsp;<span id=localtime style="position:relative;"></span>
</body>

View File

@ -1,26 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language=JavaScript>
<!--
//Disable apperiance of contextmenu
document.oncontextmenu=new Function("return false");
function toPlaylist(target)
{
alert(target);
}
// -->
</script>
<a href="" id="123" onContextMenu="toPlaylist('String1234')">xxxxx</a>
</body>
</html>

View File

@ -1,4 +1,4 @@
<!-- $Id: smarty-dynamic-fancygroup.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
<!-- $Id: smarty-dynamic-fancygroup.tpl,v 1.4 2005/02/09 16:50:18 sebastian Exp $ -->
<tr>
<td valign="top" align="right">

View File

@ -1,4 +1,4 @@
<!-- $Id: smarty-dynamic-green.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
<!-- $Id: smarty-dynamic-green.tpl,v 1.4 2005/02/09 16:50:18 sebastian Exp $ -->
<tr>
<td align="right" valign="top" class="green"><b>{$element.label}:</b></td>

View File

@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id: smarty-dynamic.tpl,v 1.3 2005/02/08 15:09:25 sebastian Exp $ -->
<!-- $Id: smarty-dynamic.tpl,v 1.4 2005/02/09 16:50:18 sebastian Exp $ -->
<html>
<head>
<title>Smarty template for Array renderer</title>

View File

@ -29,11 +29,7 @@
{if $element.error}<font color="red">{$element.error}</font><br />{/if}
{if $element.type eq "group"}
{foreach key=gkey item=gitem from=$element.elements}
{$gitem.label}
{$gitem.html}{if $gitem.required}<font color="red">*</font>{/if}
{if $element.separator}{cycle values=$element.separator}{/if}
{/foreach}
{foreach key=gkey item=gitem from=$element.elements}{$gitem.label}{$gitem.html}{if $gitem.required}<font color="red">*</font>{/if}{if $element.separator}{cycle values=$element.separator}{/if}{/foreach}
{else}
{$element.html}
{/if}

View File

@ -38,11 +38,11 @@ function switchMDataLang()
function spread(element, name)
{
if (document.forms['metadata'].elements['Main-' + name]) document.forms['metadata'].elements['Main-' + name].value = element.value;
if (document.forms['metadata'].elements['Music_Basic-' + name]) document.forms['metadata'].elements['Music_Basic-' + name].value = element.value;
if (document.forms['metadata'].elements['Music_Advanced-' + name]) document.forms['metadata'].elements['Music_Advanced-' + name].value = element.value;
if (document.forms['metadata'].elements['Talk_Basic-' + name]) document.forms['metadata'].elements['Talk_Basic-' + name].value = element.value;
if (document.forms['metadata'].elements['Talk_Advanced-' + name]) document.forms['metadata'].elements['Talk_Advanced-' + name].value = element.value;
if (document.forms['metadata'].elements['Main__' + name]) document.forms['metadata'].elements['Main__' + name].value = element.value;
if (document.forms['metadata'].elements['Music_Basic__' + name]) document.forms['metadata'].elements['Music_Basic__' + name].value = element.value;
if (document.forms['metadata'].elements['Music_Advanced__' + name]) document.forms['metadata'].elements['Music_Advanced__' + name].value = element.value;
if (document.forms['metadata'].elements['Talk_Basic__' + name]) document.forms['metadata'].elements['Talk_Basic__' + name].value = element.value;
if (document.forms['metadata'].elements['Talk_Advanced__' + name]) document.forms['metadata'].elements['Talk_Advanced__' + name].value = element.value;
}
function showMain()

View File

@ -4,6 +4,12 @@
<!-- Original: Tomleung (lok_2000_tom@hotmail.com) This tag should not be removed-->
<!--Server time ticking clock v2.0 Updated by js-x.com-->
<!-- server time ticking clock modified for livesupport.campware.org using above script-->
function twoDigit(_v)
{
_v = Math.round(_v);
if(_v<10) _v="0"+_v;
return _v;
}
function MakeArrayday(size)
{
this.length = size;
@ -25,23 +31,16 @@ var seconds;
var timer=null;
function sClock()
{
sinterval = 100;
sinterval = 100; // milliseconds
{/literal}
hours= {$smarty.now|date_format:"%H"};
minutes={$smarty.now|date_format:"%M"};
seconds={$smarty.now|date_format:"%S"};
hours = {$smarty.now|date_format:"%H"};
minutes = {$smarty.now|date_format:"%M"};
seconds = {$smarty.now|date_format:"%S"};
{literal}
if(timer){clearInterval(timer);timer=null;}
timer=setInterval("work();", sinterval);
}
function twoDigit(_v)
{
_v = Math.round(_v);
if(_v<10) _v="0"+_v;
return _v;
}
function work()
{
if (!document.layers && !document.all && !document.getElementById) return;
@ -110,7 +109,7 @@ var lseconds;
var ltimer=null;
function lClock()
{
linterval = 100;
linterval = 100; // milliseconds
var tDate = new Date();
lhours = tDate.getHours();
lminutes = tDate.getMinutes();

View File

@ -24,8 +24,8 @@ 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) + '[0]'].options[0].selected=true;
document.forms['search'].elements['row_' + Number(row) + '[1]'].options[0].selected=true;
document.forms['search'].elements['row_' + Number(row) + '[2]'].value = '';
}

View File

@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id: smarty-static.tpl,v 1.4 2005/02/08 15:09:25 sebastian Exp $ -->
<!-- $Id: smarty-static.tpl,v 1.5 2005/02/09 16:50:18 sebastian Exp $ -->
<html>
<head>
<title>Smarty template for ArraySmarty renderer: 2 column layout example</title>

View File

@ -150,6 +150,6 @@ if ($uiBrowser->userid) {
break;
}
}
$Smarty->display('main.tpl');
?>

View File

@ -1,93 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY><!--StartFragment --><SPAN class=txt>
<DIV id=intelliTxt>
<P>&nbsp;</P>
<P>
<TABLE cellSpacing=1 cellPadding=2 width="100%" border=1>
<TBODY>
<TR>
<TD><STRONG><FONT size=2>Rule Name</FONT></STRONG></TD>
<TD><STRONG><FONT size=2>Argument</FONT></STRONG></TD>
<TD><STRONG><FONT size=2>Rule Description</FONT></STRONG></TD></TR>
<TR>
<TD><FONT size=2>required</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>Some input is required in the field. </FONT></TD></TR>
<TR>
<TD><FONT size=2>maxlength</FONT></TD>
<TD><FONT size=2>$length</FONT></TD>
<TD><FONT size=2>The input can be at most $length characters.</FONT></TD></TR>
<TR>
<TD><FONT size=2>minlength</FONT></TD>
<TD><FONT size=2>$length</FONT></TD>
<TD><FONT size=2>The input must be at least $length
characters.</FONT></TD></TR>
<TR>
<TD><FONT size=2>rangelength</FONT></TD>
<TD><FONT size=2>$min,$max</FONT></TD>
<TD><FONT size=2>The input must be between $min and $max characters
(inclusive). </FONT></TD></TR>
<TR>
<TD><FONT size=2>regex</FONT></TD>
<TD><FONT size=2>$rx</FONT></TD>
<TD><FONT size=2>The input must match the regular expression
$rx.</FONT></TD></TR>
<TR>
<TD><FONT size=2>email</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must be a likely syntactically valid e-mail
address.*</FONT></TD></TR>
<TR>
<TD><FONT size=2>emailorblank</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must be blank or satisfy the email rule.
</FONT></TD></TR>
<TR>
<TD><FONT size=2>lettersonly</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must contain only alphabetic
characters.</FONT></TD></TR>
<TR>
<TD><FONT size=2>alphanumeric</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must contain only letters and numbers.
</FONT></TD></TR>
<TR>
<TD><FONT size=2>numeric</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must contain a valid positive or negative
integer or decimal number.</FONT></TD></TR>
<TR>
<TD><FONT size=2>nopunctuation</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must not contain any of these characters: ( ) .
/ * ^ ? # ! @ $ % + = , " ' &gt; &lt; ~ [ ] { }. </FONT></TD></TR>
<TR>
<TD><FONT size=2>nonzero</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The input must not begin with zero.</FONT></TD></TR>
<TR>
<TD><FONT size=2>uploadedfile</FONT></TD>
<TD><FONT size=2></FONT></TD>
<TD><FONT size=2>The element must contain a successfully uploaded
file.</FONT></TD></TR>
<TR>
<TD><FONT size=2>maxfilesize</FONT></TD>
<TD><FONT size=2>$size</FONT></TD>
<TD><FONT size=2>The uploaded file must be no more than $size
bytes.</FONT></TD></TR>
<TR>
<TD><FONT size=2>mimetype</FONT></TD>
<TD><FONT size=2>$mime</FONT></TD>
<TD><FONT size=2>The uploaded file must have a MIME type of $mime. If
$mime is an array of MIME types, the uploaded file must have a MIME type
equal to one of the elements in $mime.</FONT></TD></TR>
<TR>
<TD><FONT size=2>filename</FONT></TD>
<TD><FONT size=2>$file_rx</FONT></TD>
<TD><FONT size=2>The uploaded file must have a filename that matches the
regular expression
$file_rx.</FONT></TD></TR></TBODY></TABLE></P></DIV></SPAN></TD></BODY></HTML>

View File

@ -102,6 +102,12 @@ class uiBase
$groupthose[] =& $elem[$val];
}
$form->addGroup($groupthose, $v['name'], $this->tra($v['label']), $v['seperator'], $v['appendName']);
if ($v['rule']) {
$form->addRule($v['name'], isset($v['rulemsg']) ? $this->tra($v['rulemsg']) : $this->tra('$1 must be $2', $this->tra($v['name'])), $v['rule'], $v['format'], $side);
}
if ($v['grouprule']) {
$form->addGroupRule($v['name'], $v['arg1'], $v['grouprule'], $v['format'], $v['howmany'], $side, $v['reset']);
}
unset($groupthose);
}
## check error on type file ##########
@ -182,5 +188,36 @@ class uiBase
}
}
function _twoDigits($num)
{
if ($num < 10)
return ("0$num");
else
return $num;
}
function _getDArr($format)
{
#$arr[''] = '00';
switch($format) {
case 'h':
for($n=0; $n<=23; $n++) {
$arr[$this->_twoDigits($n)] = $this->_twoDigits($n);
}
break;
case 'm':
case 's':
for($n=0; $n<=59; $n++) {
$arr[$this->_twoDigits($n)] = $this->_twoDigits($n);
}
break;
}
return $arr;
}
}
?>

View File

@ -446,30 +446,19 @@ class uiBrowser extends uiBase {
$form = new HTML_QuickForm('langswitch', UI_STANDARD_FORM_METHOD, UI_BROWSER);
$this->_parseArr2Form($form, $mask['langswitch']);
$output['langswitch'] = $form->toHTML();
/*
## multiple forms
$parts = array ('Main', 'Music_Basic', 'Music_Advanced', 'Talk_Basic', 'Talk_Advanced');
foreach ($parts as $key) {
unset ($form);
$form = new HTML_QuickForm($key, UI_STANDARD_FORM_METHOD, UI_BROWSER);
$this->_parseArr2Form($form, $mask['pages'][$key]);
$this->_parseArr2Form($form, $mask['basics']);
$output['pages'][$key] = $form->toHTML();
} */
## single form
$form = new HTML_QuickForm('metadata', UI_STANDARD_FORM_METHOD, UI_HANDLER);
$this->_parseArr2Form($form, $mask['basics']);
$form->setConstants( array('id' => $id,
#!!!!!'langid' => array_pop($this->gb->getMDataValue($id, 'langid', $this->sessid))
'langid' => 'en'
#!!!!!'langid' => array_pop($this->gb->getMDataValue($id, 'langid', $this->sessid))
'langid' => 'en'
)
);
## convert element names to be unique over different forms-parts, add javascript to spread values over parts, add existing values from database
foreach ($mask['tabs']['group']['group'] as $key) {
foreach ($mask['pages'][$key] as $k=>$v) {
$mask['pages'][$key][$k]['element'] = $key.'-'.$v['element'];
$mask['pages'][$key][$k]['element'] = $key.'__'.$v['element'];
$mask['pages'][$key][$k]['attributes'] = array ('onChange' => "spread(this, '".$v['element']."')");
## recive data from GreenBox
@ -482,21 +471,11 @@ class uiBrowser extends uiBase {
$mask['pages'][$key][$k]['default'] = $data[strtr($v['element'], '_', '.')];
}
}
#$form->addElement('html', "<div id='div_$key'>");
$form->addElement('static', NULL, NULL, "<div id='div_$key'>");
$this->_parseArr2Form($form, $mask['pages'][$key]);
$this->_parseArr2Form($form, $mask['buttons']);
#$form->addElement('html', "</div id='div_$key'>");
$form->addElement('static', NULL, NULL, "</div id='div_$key'>");
}
/*
$renderer = new HTML_QuickForm_Renderer_Default;
$renderer->setFormTemplate("\n<form{attributes}>\n<div>\n{content}\n</div>\n</form>");
#$renderer->setElementTemplate("\n\t<div class='mdataelement'><div class='mdataelementtext'><!-- BEGIN required --><span style=\"color: #ff0000\">*</span><!-- END required --><b>{label}</b><!-- BEGIN error --><span style=\"color: #ff0000\">{error}</span><br /><!-- END error -->\t</div><div class='mdataelementelement'>{element}</div></div>\n\t");
$renderer->setElementTemplate("\n\t<div class='mdataelement'><!-- BEGIN required --><span style=\"color: #ff0000\">*</span><!-- END required --><b>{label}</b><!-- BEGIN error --><span style=\"color: #ff0000\">{error}</span><br /><!-- END error -->\t<br>{element}</div>\n\t");
$form->accept($renderer);
$output['pages'][] = $renderer->toHTML();
*/
## using Dynamic Smarty Renderer
$renderer =& new HTML_QuickForm_Renderer_Array(true, true);

View File

@ -1,7 +1,6 @@
<?php
session_start();
require_once dirname(__FILE__).'/conf.php';
require_once dirname(__FILE__).'/ui_fmask.inc.php';
// LS classes/functions
require_once dirname(__FILE__).'/ui_base.inc.php';
@ -41,4 +40,6 @@ if(is_array($_SESSION['retransferFormData'])){
}
unset($_SESSION['retransferFormData']);
}
require_once dirname(__FILE__).'/ui_fmask.inc.php';
?>

View File

@ -190,17 +190,50 @@ $ui_fmask = array(
'label' => 'Format',
'required' => TRUE,
'options' => array(
'' => '',
'File' => 'File',
'live stream' => 'Live Stream',
'networked file'=> 'Networked File',
'audio/mpeg' => 'audio/mpeg'
)
),
/*
array(
'element' => 'Format_Extent',
'type' => 'text',
'type' => 'date',
'options' => array(
'format' => 'His'
),
'label' => 'Format_Extent',
'required' => TRUE,
'required' => TRUE
), */
array(
'element' => 'Format_Extent_h',
'type' => 'select',
'options' => $uiBase->_getDArr('h'),
'groupit' => TRUE
),
array(
'element' => 'Format_Extent_m',
'type' => 'select',
'options' => $uiBase->_getDArr('m'),
'groupit' => TRUE
),
array(
'element' => 'Format_Extent_s',
'type' => 'select',
'options' => $uiBase->_getDArr('h'),
'groupit' => TRUE
),
array(
'group' => array('Main__Format_Extent_h', 'Main__Format_Extent_m', 'Main__Format_Extent_s'),
#'name' => 'gr_Format_Extent',
'label' => 'Format_Extent',
'rule' => 'required',
#'grouprule' => 'regex',
#'format' => '/([1-9]0)|([1-9]{2})|(0[1-9])/',
#'arg1' => 'Please enter Format_Extent',
#'howmany' => 1
),
),
'Music_Basic' => array(
@ -263,9 +296,36 @@ $ui_fmask = array(
'label' => 'Description_Rating',
'rule' => 'numeric',
),
/*
array(
'element' => 'Format_Extent',
'type' => 'text',
'type' => 'date',
'options' => array(
'format' => 'His'
),
'label' => 'Format_Extent'
), */
array(
'element' => 'Format_Extent_h',
'type' => 'select',
'options' => $uiBase->_getDArr('h'),
'groupit' => TRUE
),
array(
'element' => 'Format_Extent_m',
'type' => 'select',
'options' => $uiBase->_getDArr('m'),
'groupit' => TRUE
),
array(
'element' => 'Format_Extent_s',
'type' => 'select',
'options' => $uiBase->_getDArr('h'),
'groupit' => TRUE
),
array(
'group' => array('Music_Basic__Format_Extent_h', 'Music_Basic__Format_Extent_m', 'Music_Basic__Format_Extent_s'),
#'name' => 'gr_Format_Extent',
'label' => 'Format_Extent',
),
),
@ -743,4 +803,4 @@ $ui_fmask = array(
)
)
)
);
);

View File

@ -444,7 +444,7 @@ class uiHandler extends uiBase {
$this->redirUrl = UI_BROWSER.'?act=editMetaDataValues&id='.$formdata['id'];
foreach ($mask['tabs']['group']['group'] as $key) {
foreach ($mask['pages'][$key] as $k=>$v) {
$formdata[$key.'-'.$v['element']] ? $mData[strtr($v['element'], '_', '.')] = $formdata[$key.'-'.$v['element']] : NULL;
$formdata[$key.'__'.$v['element']] ? $mData[strtr($v['element'], '_', '.')] = $formdata[$key.'__'.$v['element']] : NULL;
}
}

View File

@ -1,7 +1,6 @@
<?php
session_start();
require_once dirname(__FILE__).'/conf.php';
require_once dirname(__FILE__).'/ui_fmask.inc.php';
// LS classes/functions
require_once dirname(__FILE__).'/ui_base.inc.php';
@ -18,4 +17,7 @@ PEAR::setErrorHandling(PEAR_ERROR_RETURN);
#PEAR::setErrorHandling(PEAR_ERROR_PRINT);
$uiHandler = new uiHandler($config);
$uiBase = new uiBase();
require_once dirname(__FILE__).'/ui_fmask.inc.php';
?>