pearweb_manual
[ class tree: pearweb_manual ] [ index: pearweb_manual ] [ all elements ]

Source for file note-manage-admin.tpl.php

Documentation is available at note-manage-admin.tpl.php

  1. <?php
  2. extra_styles('/css/thickbox.css');
  3. response_header($title);
  4. ?>
  5. <style type="text/css">
  6. #actions_box {
  7.     position: fixed; background-color: white; right: 0; bottom: 0; padding: 1em;
  8. }
  9.  
  10. .user_note label {
  11.     cursor: pointer;
  12. }
  13. .user_note {
  14.     margin-top: 1.5em;
  15.     padding-top: 1.5em;
  16.     border-top: 1px solid rgb(200, 200, 200);
  17. }
  18.  
  19. </style>
  20.  
  21. <script type="text/javascript" src="/javascript/thickbox.js"></script>
  22. <script type="text/javascript">
  23.     var isChecked = false;
  24.     
  25.     $('#submitButton').live('click', function() {
  26.         if (isChecked === false) {
  27.             $('input[type=checkbox]').each(function() {
  28.                 $(this).attr('checked', 'check');
  29.                 isChecked = true;
  30.             });
  31.         } else {
  32.             $('input[type=checkbox]').each(function() {
  33.                 $(this).attr('checked', false);
  34.                 isChecked = false;
  35.             });
  36.         }
  37.     });
  38. </script>
  39. <h1>Notes Management Area</h1>
  40. <h3><?php echo $title?></h3>
  41. <?php include PEARWEB_TEMPLATEDIR . '/notes/note-manage-links.tpl.php'?>
  42.  
  43. <?php if (count($pendingComments> 0?>
  44. <?php if (strlen(trim($error)) > 0)// {{{ error ?>
  45. <div class="errors"><?php echo $error?></div>
  46. <?php endif; // }}} ?>
  47. <?php if (isset($message&& strlen(trim($message)) > 0)// {{{ message?>
  48. <div class="message"><?php echo $message?></div>
  49. <?php endif; // }}} ?>
  50.  
  51. <?php
  52. if (isset($url&& !empty($url)) {
  53.     echo '<a href="/manual/en/',
  54.           urlencode(htmlspecialchars($url)),
  55.          '">Return to manual</a>';
  56. }
  57. ?>
  58.  
  59. <form action="/notes/admin/trans.php" method="post">
  60.  <input type="hidden" name="action" value="<?php echo $action ?>" />
  61.  <input type="hidden" name="url" value="<?php echo htmlspecialchars($url?>" />
  62.  
  63.     <div id="actions_box">
  64.         <h3><?php echo $caption ?></h3>
  65.         <input id="submitButton" type="button"  value="Select All" />&nbsp;
  66.         <input type="submit" name="<?php echo $name ?>" value="<?php echo $button ?>" />
  67.         <?php if ($name != 'undelete')?>
  68.           <input type="submit" name="delete" value="Delete" />
  69.         <?php endif; ?>
  70.     </div>
  71.  
  72.  
  73.   <?php foreach ($pendingComments as $pendingComment)?>
  74.  
  75.     <div class="user_note">
  76.         <h4><a href="/manual/en/<?php echo $pendingComment['page_url'?>"><?php echo $pendingComment['page_url'?></a> - <?php echo htmlspecialchars($pendingComment['user_name'])?></h4>
  77.         <p>
  78.             <label>
  79.                <input type="checkbox" name="noteIds[]" value="<?php echo $pendingComment['note_id']?>" style="display: block; float: right" />
  80.                <?php
  81.                  if (strlen($pendingComment['unfiltered_note']> 200{
  82.                      echo substr(htmlspecialchars($pendingComment['unfiltered_note'])0200'...';
  83.                  else {
  84.                      echo $pendingComment['note_text'];
  85.                  }
  86.                ?>
  87.             </label>
  88.         </p>
  89.         <p>
  90.             <a class="thickbox" href="view-note.php?height=300&width=450&ajax=yes&noteId=<?php echo $pendingComment['note_id'?>"
  91.                title="See full note">View full note</a> <a href="view-note.php?ajax=no&status=<?php echo $status ?>&noteId=<?php echo $pendingComment['note_id'?>"
  92.                title="No JS View">(no js)</a>, or
  93.             <a href="/notes/admin/trans.php?action=makeDocBug&noteId=<?php echo $pendingComment['note_id']?>&url=<?php echo $pendingComment['page_url']?>">make a Doc Bug</a>.
  94.         </p>
  95.     </div> 
  96.  <?php endforeach; ?>
  97.  
  98.  
  99. </form>
  100. <?php elseif (count($pendingComments== 0?>
  101. <h3>There are no pending user notes to manage, sorry... :(</h3>
  102. <?php endif; ?>
  103. <?php response_footer()?>

Documentation generated on Mon, 11 Mar 2019 16:04:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.