PageRenderTime 88ms CodeModel.GetById 34ms RepoModel.GetById 7ms app.codeStats 0ms

/protected/views/tracker/admin.php

https://bitbucket.org/zeroows/bugitor
PHP | 87 lines | 50 code | 6 blank | 31 comment | 0 complexity | 62835dc386969a1d4de253f5bf7b0a5e MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause, AGPL-1.0, GPL-2.0, MIT, LGPL-2.1
  1. <?php
  2. /*
  3. * This file is part of
  4. * ____ _ __
  5. * / __ )__ ______ _(_) /_____ _____
  6. * / __ / / / / __ `/ / __/ __ \/ ___/
  7. * / /_/ / /_/ / /_/ / / /_/ /_/ / /
  8. * /_____/\__,_/\__, /_/\__/\____/_/
  9. * /____/
  10. * A Yii powered issue tracker
  11. * http://bitbucket.org/jacmoe/bugitor/
  12. *
  13. * Copyright (C) 2009 - 2013 Bugitor Team
  14. *
  15. * Permission is hereby granted, free of charge, to any person
  16. * obtaining a copy of this software and associated documentation files
  17. * (the "Software"), to deal in the Software without restriction,
  18. * including without limitation the rights to use, copy, modify, merge,
  19. * publish, distribute, sublicense, and/or sell copies of the Software,
  20. * and to permit persons to whom the Software is furnished to do so,
  21. * subject to the following conditions:
  22. * The above copyright notice and this permission notice shall be included
  23. * in all copies or substantial portions of the Software.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  28. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  29. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
  30. * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
  31. * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  32. */
  33. ?>
  34. <?php
  35. $this->breadcrumbs=array(
  36. 'Trackers'=>array('index'),
  37. 'Manage',
  38. );
  39. $this->menu=array(
  40. array('label'=>'List Tracker', 'url'=>array('index')),
  41. array('label'=>'Create Tracker', 'url'=>array('create')),
  42. );
  43. Yii::app()->clientScript->registerScript('search', "
  44. $('.search-button').click(function(){
  45. $('.search-form').toggle();
  46. return false;
  47. });
  48. $('.search-form form').submit(function(){
  49. $.fn.yiiGridView.update('tracker-grid', {
  50. data: $(this).serialize()
  51. });
  52. return false;
  53. });
  54. ");
  55. ?>
  56. <h1>Manage Trackers</h1>
  57. <p>
  58. You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
  59. or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
  60. </p>
  61. <?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
  62. <div class="search-form" style="display:none">
  63. <?php $this->renderPartial('_search',array(
  64. 'model'=>$model,
  65. )); ?>
  66. </div><!-- search-form -->
  67. <?php $this->widget('zii.widgets.grid.CGridView', array(
  68. 'id'=>'tracker-grid',
  69. 'dataProvider'=>$model->search(),
  70. 'filter'=>$model,
  71. 'columns'=>array(
  72. 'id',
  73. 'name',
  74. 'is_in_chlog',
  75. 'is_in_roadmap',
  76. 'position',
  77. array(
  78. 'class'=>'CButtonColumn',
  79. ),
  80. ),
  81. )); ?>