*** empty log message ***

This commit is contained in:
sebastian 2005-03-22 20:11:26 +00:00
parent a340148e0c
commit 8ae2b9f8b9
9 changed files with 32 additions and 37 deletions

View file

@ -185,7 +185,7 @@ switch($_REQUEST['act']){
case "PL.create":
if (($ui_tmpid = $uiHandler->PLAYLIST->create($_REQUEST['id'])) !== FALSE)
$uiHandler->SCRATCHPAD->addItem($ui_tmpid);
$uiHandler->PLAYLIST->setReload();
$uiHandler->PLAYLIST->setRedirect();
break;
case "PL.addItem":

View file

@ -9,8 +9,8 @@
</ul>
</div>
{*$_metadataform.tabs*}
{*$_metadataform.langswitch*}
{assign var="dynform" value=$_metadataform.langswitch}
{include file="sub/dynForm_plain.tpl"}
{foreach from=$_metadataform.pages key="key" item="dynform"}
{include file="sub/dynForm_plain.tpl"}

View file

@ -51,15 +51,15 @@ function contextmenu(param) {
break;
case "PL.changeFadeIn":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=fadeIn&id="+param+"', 'PL', '350', '100')\" "+oF+">&nbsp;Change Fadein&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=fadeIn&id="+param+"', 'PL', '400', '100')\" "+oF+">&nbsp;Change Fadein&nbsp;</a></li>";
break;
case "PL.changeTransition":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=transition&id="+param+"', 'PL', '350', '100')\" "+oF+">&nbsp;Change Transition&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=transition&id="+param+"', 'PL', '400', '100')\" "+oF+">&nbsp;Change Transition&nbsp;</a></li>";
break;
case "PL.changeFadeOut":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=fadeOut&id="+param+"', 'PL', '350', '100')\" "+oF+">&nbsp;Change Fadeout&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=PL.changeTransition&type=fadeOut&id="+param+"', 'PL', '400', '100')\" "+oF+">&nbsp;Change Fadeout&nbsp;</a></li>";
break;
case "PL.editMetaData":
@ -85,7 +85,7 @@ function contextmenu(param) {
case "delete":
//contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=delete&id="+param+"')\" "+oF+">&nbsp;Delete Item&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=deleteItem&id="+param+"', 'deleteItem', 300, 150)\"')"+oF+">&nbsp;Delete Item&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=deleteItem&id="+param+"', 'deleteItem', 400, 200)\"')"+oF+">&nbsp;Delete Item&nbsp;</a></li>";
break;
case "fileList":
@ -93,11 +93,11 @@ function contextmenu(param) {
break;
case "SCHEDULER.addItem":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=SCHEDULER.set&"+param+"'); popup('{$UI_BROWSER}?popup[]=SCHEDULER.addItem', 'Schedule', 600, 400)\"')"+oF+">&nbsp;Insert Playlist here&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=SCHEDULER.set&"+param+"'); popup('{$UI_BROWSER}?popup[]=SCHEDULER.addItem', 'Schedule', 400, 200)\"')"+oF+">&nbsp;Insert Playlist here&nbsp;</a></li>";
break;
case "SCHEDULER.removeItem":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=SCHEDULER.removeItem&"+param+"', 'Schedule', 600, 400)\"')"+oF+">&nbsp;Remove Playlist&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=SCHEDULER.removeItem&"+param+"', 'Schedule', 400, 200)\"')"+oF+">&nbsp;Remove Playlist&nbsp;</a></li>";
break;
{literal}
}

View file

@ -42,11 +42,13 @@
{/if}
{/foreach}
{*
{if $dynform.requirednote and not $dynform.frozen}
<div class='dynformelement'>
{$dynform.requirednote}
</div>
{/if}
*}
</form>
<!--

View file

@ -370,12 +370,16 @@ class uiBrowser extends uiBase {
include dirname(__FILE__).'/formmask/metadata.inc.php';
/*
$form = new HTML_QuickForm('tabs', UI_STANDARD_FORM_METHOD, UI_BROWSER);
$this->_parseArr2Form($form, $mask['tabs']);
$output['tabs'] = $form->toHTML();
*/
$form = new HTML_QuickForm('langswitch', UI_STANDARD_FORM_METHOD, UI_BROWSER);
$this->_parseArr2Form($form, $mask['langswitch']);
$output['langswitch'] = $form->toHTML();
$renderer =& new HTML_QuickForm_Renderer_Array(true, true);
$form->accept($renderer);
$output['langswitch'] = $renderer->toArray();
$form = new HTML_QuickForm('editMetaData', UI_STANDARD_FORM_METHOD, UI_HANDLER);
$this->_parseArr2Form($form, $mask['basics']);

View file

@ -275,7 +275,7 @@ class uiHandler extends uiBase {
}
$data = $this->_dateArr2Str($mData);
foreach ($data as $key=>$val) {
$r = $this->gb->setMDataValue($id, $key, $this->sessid, $val);
$r = $this->gb->setMDataValue($id, $key, $this->sessid, $val, 'de');
if (PEAR::isError($r)) {
$this->_retMsg('Unable to set $1: $2', $key, $val);
}
@ -439,7 +439,7 @@ class uiHandler extends uiBase {
if ($this->_validateForm($formdata, $mask)) {
if($this->gb->checkPerm($this->userid, 'subjects')){
$res = $this->gb->addSubj($formdata['login'], ($formdata['pass']=='' ? NULL : $formdata['pass']));
$this->_retMsg('Subject $1 added.', $formdata['login']);
if (UI_VERBOSE) $this->_retMsg('Subject $1 added.', $formdata['login']);
} else {
$this->_retMsg('Access denied.');
return;
@ -601,9 +601,9 @@ class uiHandler extends uiBase {
if ($val['error']) {
switch ($val['error']) {
case 1: $was_error = TRUE; $this->_retMsg('Uploaded File $1 is greater than System setting.', $mask[$key]['label']); break;
case 2: $was_error = TRUE; $this->_retMsg('Uploaded File $1 is greater than LS setting.', $mask[$key]['label']); break;
case 3: $was_error = TRUE; $this->_retMsg('File $1 was uploadet partly.', $mask[$key]['label']); break;
case 1: $was_error = TRUE; $this->_retMsg('Uploaded file $1 is greater than setting in php.ini.', $mask[$key]['label']); break;
case 2: $was_error = TRUE; $this->_retMsg('Uploaded file $1 is greater than LiveSupport system setting.', $mask[$key]['label']); break;
case 3: $was_error = TRUE; $this->_retMsg('Upload of file $1 was incomplete.', $mask[$key]['label']); break;
case 4: if ($mask[$key]['required']) {$was_error = TRUE; $this->_retMsg('File $1 was not uploadet.', $mask[$key]['label']);} break;
}
}
@ -650,7 +650,7 @@ class uiHandler extends uiBase {
}
}
$this->loadStationPrefs($mask, TRUE);
$this->_retMsg('Settings saved');
if (UI_VERBOSE) $this->_retMsg('Settings saved');
return TRUE;
}
}

View file

@ -431,7 +431,7 @@ class uiPlaylist
$id = $this->activeId;
$this->release(FALSE);
if ($this->Base->delete($id))
return TRUE;
return $id;
$this->Base->_retMsg('Cannot delete this Playlist');
return FALSE;
}

View file

@ -393,7 +393,7 @@ class uiScheduler extends uiCalendar
function initXmlRpc()
{
include_once dirname(__FILE__).'/SchedulerPhpClient.class.php';
$this->spc =& SchedulerPhpClient::factory($this->Base->dbc, $mdefs, $this->Base->config);
$this->spc =& SchedulerPhpClient::factory($this->Base->dbc, $mdefs, $this->Base->config, FALSE, FALSE);
}
@ -406,7 +406,7 @@ class uiScheduler extends uiCalendar
$datetime = $formdata['date']['Y'].sprintf('%02d', $formdata['date']['m']).sprintf('%02d', $formdata['date']['d']).'T'.sprintf('%02d', $formdata['time']['H']).':'.sprintf('%02d', $formdata['time']['i']).':'.sprintf('%02d', $formdata['time']['s']);
#echo "Schedule Gunid: $gunid At: ".$datetime;
$r = $this->spc->UploadPlaylistMethod($this->Base->sessid, $gunid, $datetime.UI_TIMEZONE);
$r = $this->spc->UploadPlaylistMethod($this->Base->sessid, $gunid, $datetime);
#print_r($r);
if ($this->_isError($r))
return FALSE;
@ -428,23 +428,12 @@ class uiScheduler extends uiCalendar
function displayScheduleMethod($from, $to)
{
{ return;
#echo $from.$to;
$r = $this->spc->displayScheduleMethod($this->Base->sessid, $from, $to);
if ($this->_isError($r))
return FALSE;
return $r;
}
function GeneratePlayReportMethod($from, $to)
{
#echo $from.$to;
$r = $this->spc->GeneratePlayReportMethod($this->Base->sessid, $from, $to);
if ($this->_isError($r))
return FALSE;
#print_r($r);
return $r;
}
}
?>

View file

@ -101,7 +101,7 @@ class uiScratchPad
foreach ($ids as $id) {
$sp =& $this->get();
foreach ($sp as $key=>$val) {
if ($val['id'] == $id) {
if ($val['id'] === $id) {
unset ($sp[$key]);
#$this->Base->decAccessCounter($id);
}