mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add curly braces
This commit is contained in:
@@ -220,27 +220,27 @@ class task_period_archive extends task_abstract
|
||||
ob_start();
|
||||
?>
|
||||
<form name="graphicForm" onsubmit="return(false);" method="post">
|
||||
<?php echo _('task::archive:archivage sur base/collection/') ?> :
|
||||
<?php echo _('task::archive:archivage sur base/collection/') ?> :
|
||||
|
||||
<select onchange="chgxmlpopup(this, 'base_id');" name="base_id">
|
||||
<option value="">...</option>
|
||||
<?php
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
foreach ($databox->get_collections() as $collection) {
|
||||
print("<option value=\"" . $collection->get_base_id() . "\">" . $databox->get_viewname() . " / " . $collection->get_name() . "</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
foreach ($databox->get_collections() as $collection) {
|
||||
print("<option value=\"" . $collection->get_base_id() . "\">" . $databox->get_viewname() . " / " . $collection->get_name() . "</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br/>
|
||||
<br/>
|
||||
<?php echo _('task::_common_:hotfolder') ?>
|
||||
<?php echo _('task::_common_:hotfolder') ?>
|
||||
<input type="text" name="hotfolder" style="width:400px;" onchange="chgxmltxt(this, 'hotfolder');" value=""><br/>
|
||||
<br/>
|
||||
<?php echo _('task::_common_:periodicite de la tache') ?> :
|
||||
<?php echo _('task::_common_:periodicite de la tache') ?> :
|
||||
<input type="text" name="period" style="width:40px;" onchange="chgxmltxt(this, 'period');" value=""> <?php echo _('task::_common_:secondes (unite temporelle)') ?><br/>
|
||||
<br/>
|
||||
<?php echo _('task::archive:delai de \'repos\' avant traitement') ?> :
|
||||
<?php echo _('task::archive:delai de \'repos\' avant traitement') ?> :
|
||||
<input type="text" name="cold" style="width:40px;" onchange="chgxmltxt(this, 'cold');" value=""> <?php echo _('task::_common_:secondes (unite temporelle)') ?><br/>
|
||||
<br/>
|
||||
<input type="checkbox" name="move_archived" onchange="chgxmlck(this, 'move_archived');"> <?php echo _('task::archive:deplacer les fichiers archives dans _archived') ?>
|
||||
@@ -850,8 +850,9 @@ class task_period_archive extends task_abstract
|
||||
if ($depth == 0)
|
||||
$iloop = 0;
|
||||
|
||||
if ($depth == 0 && ($node->getAttribute('temperature') == 'hot' || $node->getAttribute('cid') == '-1'))
|
||||
if ($depth == 0 && ($node->getAttribute('temperature') == 'hot' || $node->getAttribute('cid') == '-1')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$xpath = new DOMXPath($dom); // useful
|
||||
|
||||
@@ -984,8 +985,9 @@ class task_period_archive extends task_abstract
|
||||
|
||||
$ret = false;
|
||||
|
||||
if ($depth == 0 && $node->getAttribute('temperature') == 'hot') // if root of hotfolder if hot, die...
|
||||
if ($depth == 0 && $node->getAttribute('temperature') == 'hot') { // if root of hotfolder if hot, die...
|
||||
return($ret);
|
||||
}
|
||||
|
||||
$nodesToDel = array();
|
||||
for ($n = $node->firstChild; $n; $n = $n->nextSibling) {
|
||||
@@ -1058,8 +1060,9 @@ class task_period_archive extends task_abstract
|
||||
if ($depth == 0)
|
||||
$iloop = 0;
|
||||
|
||||
if ($node->getAttribute('temperature') == 'hot')
|
||||
if ($node->getAttribute('temperature') == 'hot') {
|
||||
return;
|
||||
}
|
||||
|
||||
$nodesToDel = array();
|
||||
for ($n = $node->firstChild; $n; $n = $n->nextSibling) {
|
||||
@@ -1125,8 +1128,9 @@ class task_period_archive extends task_abstract
|
||||
if ($depth == 0)
|
||||
$iloop = 0;
|
||||
|
||||
if ($node->getAttribute('temperature') == 'hot')
|
||||
if ($node->getAttribute('temperature') == 'hot') {
|
||||
return;
|
||||
}
|
||||
|
||||
$ret = 0;
|
||||
for ($n = $node->firstChild; $n; $n = $n->nextSibling) {
|
||||
@@ -1186,8 +1190,9 @@ class task_period_archive extends task_abstract
|
||||
|
||||
$ret = false;
|
||||
|
||||
if ($depth == 0 && $node->getAttribute('temperature') == 'hot') // if root of hotfolder if hot, die...
|
||||
if ($depth == 0 && $node->getAttribute('temperature') == 'hot') { // if root of hotfolder if hot, die...
|
||||
return($ret);
|
||||
}
|
||||
|
||||
//printf("%s : \n", __LINE__);
|
||||
$nodesToDel = array();
|
||||
|
@@ -177,6 +177,7 @@ class task_period_cindexer extends task_abstract
|
||||
parent.calccmd();
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
} else { // ... so we NEVER come here
|
||||
// bad xml
|
||||
@@ -243,6 +244,7 @@ class task_period_cindexer extends task_abstract
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -98,6 +98,7 @@ class task_period_ftp extends task_appboxAbstract
|
||||
<?php echo $form ?>.period.value = "<?php echo p4string::MakeString($sxml->period, "js", '"') ?>";
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
} else { // ... so we NEVER come here
|
||||
// bad xml
|
||||
@@ -127,6 +128,7 @@ class task_period_ftp extends task_appboxAbstract
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -99,6 +99,7 @@ class task_period_ftpPull extends task_appboxAbstract
|
||||
<?php echo $form ?>.passive.checked = <?php echo p4field::isyes($sxml->passive) ? "true" : 'false' ?>;
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
} else { // ... so we NEVER come here
|
||||
// bad xml
|
||||
|
@@ -155,6 +155,7 @@ class task_period_outofdate extends task_abstract
|
||||
parent.calcSQL();
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
}
|
||||
else { // ... so we NEVER come here
|
||||
|
@@ -142,6 +142,7 @@ class task_period_subdef extends task_databoxAbstract
|
||||
<?php echo $form ?>.maxmegs.value = "<?php echo p4string::MakeString($sxml->maxmegs, "js", '"') ?>";
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
}
|
||||
else {
|
||||
|
@@ -118,6 +118,7 @@ class task_period_workflow01 extends task_databoxAbstract
|
||||
parent.calccmd();
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
}
|
||||
else { // ... so we NEVER come here
|
||||
|
@@ -112,6 +112,7 @@ class task_period_writemeta extends task_databoxAbstract
|
||||
<?php echo $form ?>.maxmegs.value = "<?php echo p4string::MakeString($sxml->maxmegs, "js", '"') ?>";
|
||||
</script>
|
||||
<?php
|
||||
|
||||
return("");
|
||||
}
|
||||
else { // ... so we NEVER come here
|
||||
|
Reference in New Issue
Block a user