diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-13 15:28:30 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-13 15:28:30 +0000 |
commit | d8e1f81df2e40574c0e685910bf99407f7e66017 (patch) | |
tree | a69b5a96dff0f22a37db460d5fb2d88ff49650ec /h-source/Application/Views/top_left.php | |
parent | be1d2d6c4c5623c6af59cf72e74e0335d1aa6cb5 (diff) |
administrators can permanently delete a device page - part 1
Diffstat (limited to 'h-source/Application/Views/top_left.php')
-rw-r--r-- | h-source/Application/Views/top_left.php | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/h-source/Application/Views/top_left.php b/h-source/Application/Views/top_left.php index 73e8f80..08674c8 100644 --- a/h-source/Application/Views/top_left.php +++ b/h-source/Application/Views/top_left.php @@ -31,22 +31,30 @@ <!--delete the page--> <?php if ($isadmin) { ?> <div class="moderator_box_deleted clear_right"> - <?php if ($isDeleted and $isApproved) { ?> - <?php echo gtext('This device page has been hidden'); ?> - - <a id="<?php echo $id_hard;?>" class="deviceshow_device block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png"><?php echo gtext('restore the device page'); ?></a> - - <?php } else if ($isDeleted and !$isApproved) { ?> - <?php echo gtext("This device page has not been approved yet");?> + <?php if ($isDeleted) { ?> + + <?php if ($isApproved) { ?> - <a id="<?php echo $id_hard;?>" class="deviceapprove_device_app block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png"><?php echo gtext('approve the device page'); ?></a> + <?php echo gtext('This device page has been hidden'); ?> + + <a id="<?php echo $id_hard;?>" class="deviceshow_device block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png"><?php echo gtext('restore the device page'); ?></a> + + <?php } else { ?> + <?php echo gtext("This device page has not been approved yet");?> + + <a id="<?php echo $id_hard;?>" class="deviceapprove_device_app block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png"><?php echo gtext('approve the device page'); ?></a> + + <?php } ?> + <?php } else { ?> <a id="<?php echo $id_hard;?>" class="devicehide_device block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png"><?php echo gtext('hide the device page'); ?></a> <?php } ?> + <a id="<?php echo $id_hard;?>" class="deviceclear_device_cl block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/clear.png"><?php echo gtext('permanently delete the device page'); ?></a> + <!--view details--> <div class="show_hidden_box_ext"> <div class="md_type">device</div> |