view.ipd.html.hook.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php if($story->vision == 'rnd' and $this->app->tab == 'feedback'):?>
  2. <?php js::set('storyType', $story->type);?>
  3. <style>.main-actions {display: none;}</style>
  4. <script>
  5. $(function()
  6. {
  7. if(storyType == 'story'){
  8. $('a:not([data-toggle="tab"]):not([data-app="product"])').each(function() {
  9. var text = $(this).text();
  10. $(this).replaceWith(text);
  11. });
  12. }
  13. })
  14. </script>
  15. <?php endif;?>
  16. <?php if(!empty($story->demand) and empty($story->retractedBy)):?>
  17. <?php $demand = $this->loadModel('demand')->getByID($story->demand);?>
  18. <div class='cell demandInfo'>
  19. <div class='detail'>
  20. <div class='detail-title'><?php echo $this->lang->story->demandInfo;?></div>
  21. <div class='detail-content article-content'>
  22. <table class='table table-hover table-fixed'>
  23. <thead>
  24. <tr class='text-center'>
  25. <th class='w-50px'> <?php echo $lang->demand->id;?></th>
  26. <th class='w-150px'><?php echo $lang->demand->pool;?></th>
  27. <th><?php echo $lang->demand->title;?></th>
  28. <th class='w-150px'><?php echo $lang->demand->status;?></th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <tr class='text-center'>
  33. <td><?php echo $demand->id;?></td>
  34. <td title='<?php echo $demand->poolName;?>'><?php echo $demand->poolName;?></td>
  35. <td class='text-left' title='<?php echo $demand->title;?>'><a class="iframe" data-width="90%" href="<?php echo $this->createLink('demand', 'view', "demandID=$demand->id", '', true);?>"><?php echo $demand->title;?></a></td>
  36. <td><?php echo $this->processStatus('demand', $demand);?></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. </div>
  41. </div>
  42. </div>
  43. <script>
  44. var html = $('.demandInfo');
  45. $('#mainContent .main-col .cell').first().after(html);
  46. </script>
  47. <?php endif;?>
  48. <?php
  49. $html = "<tr>";
  50. $html .= "<th>{$lang->story->duration}</th>";
  51. $html .= "<td>" . zget($lang->demand->durationList, $story->duration, $story->duration) . "</td>";
  52. $html .= "</tr>";
  53. $html .= "<tr>";
  54. $html .= "<th>{$lang->story->BSA}</th>";
  55. $html .= "<td>" . zget($lang->demand->bsaList, $story->BSA, $story->BSA) . "</td>";
  56. $html .= "</tr>";
  57. ?>
  58. <script>
  59. $('.categoryTR').after(<?php echo json_encode($html);?>);
  60. </script>