"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mrbs-1.9.4/web/view_entry.php" between
mrbs-1.9.4.tar.gz and mrbs-1.10.0.tar.gz

About: MRBS is a web application for booking meeting rooms or other resources (using PHP and MySQL/pgsql).

view_entry.php  (mrbs-1.9.4):view_entry.php  (mrbs-1.10.0)
skipping to change at line 882 skipping to change at line 882
generate_button($params, $button_attributes); generate_button($params, $button_attributes);
echo "</div>\n"; echo "</div>\n";
} }
echo "</div>\n"; echo "</div>\n";
// Delete and Delete Series // Delete and Delete Series
echo "<div>\n"; echo "<div>\n";
// For the delete buttons, either the button is disabled and we show the rea son why, or else // For the delete buttons, either the button is disabled and we show the rea son why, or else
// we add a click event to confirm the deletion // we add a click event to confirm the deletion
if (empty($button_attributes['disabled'])) unset($button_attributes['onclick']);
{
$button_attributes['onclick'] = "return confirm('" . escape_js(get_vocab("
confirmdel")) . "');";
}
else
{
unset($button_attributes['onclick']);
}
if (!$series) if (!$series)
{ {
echo "<div>\n"; echo "<div>\n";
$params = array('action' => multisite('del_entry.php'), if (empty($button_attributes['disabled']))
'value' => get_vocab('deleteentry'), {
'inputs' => array('id' => $id, $button_attributes['onclick'] = "return confirm('" . escape_js(get_vocab
'series' => 0, ('confirmdel')) . "');";
'returl' => $returl) }
); $params = array(
'action' => multisite('del_entry.php'),
'value' => get_vocab('deleteentry'),
'inputs' => array('id' => $id,
'series' => 0,
'returl' => $returl)
);
generate_button($params, $button_attributes); generate_button($params, $button_attributes);
echo "</div>\n"; echo "</div>\n";
} }
if ((!empty($repeat_id) || $series) && $repeats_allowed) if ((!empty($repeat_id) || $series) && $repeats_allowed)
{ {
echo "<div>\n"; echo "<div>\n";
$params = array('action' => multisite("del_entry.php?day=$day&month=$month if (empty($button_attributes['disabled']))
&year=$year"), {
'value' => get_vocab('deleteseries'), $button_attributes['onclick'] = "return confirm('" . escape_js(get_vocab
'inputs' => array('id' => $id, ('confirmdel_series')) . "');";
'series' => 1, }
'returl' => $returl) $params = array(
); 'action' => multisite("del_entry.php?day=$day&month=$month&year=$year"
),
'value' => get_vocab('deleteseries'),
'inputs' => array('id' => $id,
'series' => 1,
'returl' => $returl)
);
generate_button($params, $button_attributes); generate_button($params, $button_attributes);
echo "</div>\n"; echo "</div>\n";
} }
echo "</div>\n"; echo "</div>\n";
} }
} }
// Copy and Copy Series // Copy and Copy Series
if (!$auth['only_admin_can_copy_others_entries'] || $writeable) if (!$auth['only_admin_can_copy_others_entries'] || $writeable)
{ {
echo "<div>\n"; echo "<div>\n";
if (!$series) { if (!$series) {
echo "<div>\n"; echo "<div>\n";
 End of changes. 5 change blocks. 
24 lines changed or deleted 29 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)