summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-07-19 18:36:15 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-07-19 18:36:15 +0300
commit67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca (patch)
tree6757fb55109b591ea4d4cb5e39926f6c437f1d68 /inc/html.php
parent6316bc7147a7ef1e90e2040d46bd40d034a09f13 (diff)
downloadrpg-67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca.tar.gz
rpg-67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca.tar.bz2
mediamanager revisions form
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php
index b4cf27d61..e256291ee 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -483,8 +483,10 @@ function html_revisions($first=0, $media_id = false){
$form->addElement($id);
$form->addElement(form_makeCloseTag('a'));
+ if ($media_id) $form->addElement(form_makeOpenTag('div'));
+
$form->addElement(form_makeOpenTag('span', array('class' => 'sum')));
- $form->addElement(' &ndash; ');
+ if (!$media_id) $form->addElement(' &ndash; ');
if (!$media_id) $form->addElement(htmlspecialchars($INFO['sum']));
$form->addElement(form_makeCloseTag('span'));
@@ -502,6 +504,9 @@ function html_revisions($first=0, $media_id = false){
$form->addElement(form_makeCloseTag('span'));
$form->addElement('('.$lang['current'].')');
+
+ if ($media_id) $form->addElement(form_makeCloseTag('div'));
+
$form->addElement(form_makeCloseTag('div'));
$form->addElement(form_makeCloseTag('li'));
}
@@ -555,8 +560,10 @@ function html_revisions($first=0, $media_id = false){
$form->addElement($id);
}
+ if ($media_id) $form->addElement(form_makeOpenTag('div'));
+
$form->addElement(form_makeOpenTag('span', array('class' => 'sum')));
- $form->addElement(' &ndash; ');
+ if (!$media_id) $form->addElement(' &ndash; ');
$form->addElement(htmlspecialchars($info['sum']));
$form->addElement(form_makeCloseTag('span'));
@@ -571,6 +578,8 @@ function html_revisions($first=0, $media_id = false){
}
$form->addElement(form_makeCloseTag('span'));
+ if ($media_id) $form->addElement(form_makeCloseTag('div'));
+
$form->addElement(form_makeCloseTag('div'));
$form->addElement(form_makeCloseTag('li'));
}