PageRenderTime 58ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/rucrm/Smarty/templates_c/%%44^44E^44E69D4A%%ListWorkflows.tpl.php

https://code.google.com/p/vtiger-ru-fork/
PHP | 199 lines | 192 code | 7 blank | 0 comment | 10 complexity | 99ed22ca2e98a5c3a20a34e085ce3318 MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception, GPL-2.0, LGPL-3.0
  1. <?php /* Smarty version 2.6.18, created on 2011-03-13 18:18:06
  2. compiled from com_vtiger_workflow/ListWorkflows.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'com_vtiger_workflow/ListWorkflows.tpl', 18, false),array('modifier', 'getTranslatedString', 'com_vtiger_workflow/ListWorkflows.tpl', 41, false),array('modifier', 'to_html', 'com_vtiger_workflow/ListWorkflows.tpl', 122, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => 'com_vtiger_workflow/Header.tpl', 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <script src="modules/<?php echo $this->_tpl_vars['module']->name; ?>
  11. /resources/jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
  12. <script src="modules/<?php echo $this->_tpl_vars['module']->name; ?>
  13. /resources/json2.js" type="text/javascript" charset="utf-8"></script>
  14. <script src="modules/<?php echo $this->_tpl_vars['module']->name; ?>
  15. /resources/functional.js" type="text/javascript" charset="utf-8"></script>
  16. <script src="modules/<?php echo $this->_tpl_vars['module']->name; ?>
  17. /resources/workflowlistscript.js" type="text/javascript" charset="utf-8"></script>
  18. <script type="text/javascript" charset="utf-8">
  19. fn.addStylesheet('modules/<?php echo $this->_tpl_vars['module']->name; ?>
  20. /resources/style.css');
  21. </script>
  22. <!--New workflow popup-->
  23. <div id="new_workflow_popup" class="layerPopup" style="display:none;">
  24. <table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerHeadingULine">
  25. <tr>
  26. <td width="80%" align="left" class="layerPopupHeading">
  27. <?php echo $this->_tpl_vars['MOD']['LBL_CREATE_WORKFLOW']; ?>
  28. </td>
  29. <td width="20%" align="right">
  30. <a href="javascript:void(0);" id="new_workflow_popup_close">
  31. <img border="0" align="middle" src="<?php echo vtiger_imageurl('close.gif', $this->_tpl_vars['THEME']); ?>
  32. "/>
  33. </a>
  34. </td>
  35. </tr>
  36. </table>
  37. <form action="index.php" method="post" accept-charset="utf-8" onsubmit="VtigerJS_DialogBox.block();">
  38. <div class="popup_content">
  39. <table width="100%" cellpadding="0" cellspacing="0" border="0">
  40. <tr align="left">
  41. <td><input type="radio" name="source" value="from_module" checked="true" class="workflow_creation_mode">
  42. <?php echo $this->_tpl_vars['MOD']['LBL_FOR_MODULE']; ?>
  43. </td>
  44. <td><input type="radio" name="source" value="from_template" class="workflow_creation_mode">
  45. <?php echo $this->_tpl_vars['MOD']['LBL_FROM_TEMPLATE']; ?>
  46. </td>
  47. </tr>
  48. </table>
  49. <table width="100%" cellpadding="5" cellspacing="0" border="0">
  50. <tr align="left">
  51. <td width='10%' nowrap="nowrap"><?php echo $this->_tpl_vars['MOD']['LBL_CREATE_WORKFLOW_FOR']; ?>
  52. </td>
  53. <td>
  54. <select name="module_name" id="module_list" class="small">
  55. <?php $_from = $this->_tpl_vars['moduleNames']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  56. foreach ($_from as $this->_tpl_vars['moduleName']):
  57. ?>
  58. <option value="<?php echo $this->_tpl_vars['moduleName']; ?>
  59. " <?php if ($this->_tpl_vars['moduleName'] == $this->_tpl_vars['listModule']): ?>selected="selected"<?php endif; ?>>
  60. <?php echo getTranslatedString($this->_tpl_vars['moduleName'], $this->_tpl_vars['moduleName']); ?>
  61. </option>
  62. <?php endforeach; endif; unset($_from); ?>
  63. </select>
  64. </td>
  65. </tr>
  66. <tr align="left" id="template_select_field" style="display:none;">
  67. <td><?php echo $this->_tpl_vars['MOD']['LBL_CHOOSE_A_TEMPLATE']; ?>
  68. </td>
  69. <td>
  70. <span id="template_list_busyicon"><b><?php echo $this->_tpl_vars['MOD']['LBL_LOADING']; ?>
  71. </b><img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  72. " border="0"></span>
  73. <span id="template_list_foundnone" style='display:none;'><b><?php echo $this->_tpl_vars['MOD']['LBL_NO_TEMPLATES']; ?>
  74. </b></span>
  75. <select id="template_list" name="template_id" class="small"></select>
  76. </td>
  77. </tr>
  78. </table>
  79. <input type="hidden" name="save_type" value="new" id="save_type_new">
  80. <input type="hidden" name="module" value="<?php echo $this->_tpl_vars['module']->name; ?>
  81. " id="save_module">
  82. <input type="hidden" name="action" value="editworkflow" id="save_action">
  83. <table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
  84. <tr><td align="center">
  85. <input type="submit" class="crmButton small save" value="<?php echo $this->_tpl_vars['APP']['LBL_CREATE_BUTTON_LABEL']; ?>
  86. " name="save" id='new_workflow_popup_save'/>
  87. <input type="button" class="crmButton small cancel" value="<?php echo $this->_tpl_vars['APP']['LBL_CANCEL_BUTTON_LABEL']; ?>
  88. " name="cancel" id='new_workflow_popup_cancel'/>
  89. </td></tr>
  90. </table>
  91. </div>
  92. </form>
  93. </div>
  94. <!--Done Popups-->
  95. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  96. $this->_smarty_include(array('smarty_include_tpl_file' => 'SetMenu.tpl', 'smarty_include_vars' => array()));
  97. $this->_tpl_vars = $_smarty_tpl_vars;
  98. unset($_smarty_tpl_vars);
  99. ?>
  100. <div id="view">
  101. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  102. $this->_smarty_include(array('smarty_include_tpl_file' => 'com_vtiger_workflow/ModuleTitle.tpl', 'smarty_include_vars' => array()));
  103. $this->_tpl_vars = $_smarty_tpl_vars;
  104. unset($_smarty_tpl_vars);
  105. ?>
  106. <table class="tableHeading" width="100%" border="0" cellspacing="0" cellpadding="5">
  107. <tr>
  108. <td class="big" nowrap="nowrap">
  109. <strong><span id="module_info"></span></strong>
  110. </td>
  111. <td class="small" align="right">
  112. <form action="index.php" method="get" accept-charset="utf-8" id="filter_modules" onsubmit="VtigerJS_DialogBox.block();" style="display: inline;">
  113. <b><?php echo $this->_tpl_vars['MOD']['LBL_SELECT_MODULE']; ?>
  114. : </b>
  115. <select class="importBox" name="list_module" id='pick_module'>
  116. <option value="All"><?php echo $this->_tpl_vars['APP']['LBL_ALL']; ?>
  117. </a>
  118. <option value="All" disabled="disabled" >-----------------------------</a>
  119. <?php $_from = $this->_tpl_vars['moduleNames']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  120. foreach ($_from as $this->_tpl_vars['moduleName']):
  121. ?>
  122. <option value="<?php echo $this->_tpl_vars['moduleName']; ?>
  123. " <?php if ($this->_tpl_vars['moduleName'] == $this->_tpl_vars['listModule']): ?>selected="selected"<?php endif; ?>>
  124. <?php echo getTranslatedString($this->_tpl_vars['moduleName'], $this->_tpl_vars['moduleName']); ?>
  125. </option>
  126. <?php endforeach; endif; unset($_from); ?>
  127. </select>
  128. <input type="hidden" name="module" value="<?php echo $this->_tpl_vars['module']->name; ?>
  129. ">
  130. <input type="hidden" name="action" value="workflowlist">
  131. </form>
  132. </td>
  133. </tr>
  134. </table>
  135. <table class="listTableTopButtons" width="100%" border="0" cellspacing="0" cellpadding="5">
  136. <tr>
  137. <td class="small"> <span id="status_message"></span> </td>
  138. <td class="small" align="right">
  139. <input type="button" class="crmButton create small"
  140. value="<?php echo $this->_tpl_vars['MOD']['LBL_NEW_WORKFLOW']; ?>
  141. " id='new_workflow'/>
  142. </td>
  143. </tr>
  144. </table>
  145. <table class="listTable" width="100%" border="0" cellspacing="0" cellpadding="5" id='expressionlist'>
  146. <tr>
  147. <td class="colHeader small" width="20%">
  148. Module
  149. </td>
  150. <td class="colHeader small" width="65">
  151. Description
  152. </td>
  153. <td class="colHeader small" width="15%">
  154. Tools
  155. </td>
  156. </tr>
  157. <?php $_from = $this->_tpl_vars['workflows']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  158. foreach ($_from as $this->_tpl_vars['workflow']):
  159. ?>
  160. <tr>
  161. <td class="listTableRow small"><?php echo getTranslatedString($this->_tpl_vars['workflow']->moduleName, $this->_tpl_vars['workflow']->moduleName); ?>
  162. </td>
  163. <td class="listTableRow small"><?php echo to_html($this->_tpl_vars['workflow']->description); ?>
  164. </td>
  165. <td class="listTableRow small">
  166. <a href="<?php echo $this->_tpl_vars['module']->editWorkflowUrl($this->_tpl_vars['workflow']->id); ?>
  167. ">
  168. <img border="0" title="Edit" alt="Edit" \
  169. style="cursor: pointer;" id="expressionlist_editlink_<?php echo $this->_tpl_vars['workflow']->id; ?>
  170. " \
  171. src="<?php echo vtiger_imageurl('editfield.gif', $this->_tpl_vars['THEME']); ?>
  172. "/>
  173. </a>
  174. <a href="<?php echo $this->_tpl_vars['module']->deleteWorkflowUrl($this->_tpl_vars['workflow']->id); ?>
  175. " onclick="return confirm('<?php echo $this->_tpl_vars['APP']['SURE_TO_DELETE']; ?>
  176. ');">
  177. <img border="0" title="Delete" alt="Delete"\
  178. src="<?php echo vtiger_imageurl('delete.gif', $this->_tpl_vars['THEME']); ?>
  179. " \
  180. style="cursor: pointer;" id="expressionlist_deletelink_<?php echo $this->_tpl_vars['workflow']->id; ?>
  181. " />
  182. </a>
  183. </td>
  184. </tr>
  185. <?php endforeach; endif; unset($_from); ?>
  186. </table>
  187. </div>
  188. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  189. $this->_smarty_include(array('smarty_include_tpl_file' => 'com_vtiger_workflow/Footer.tpl', 'smarty_include_vars' => array()));
  190. $this->_tpl_vars = $_smarty_tpl_vars;
  191. unset($_smarty_tpl_vars);
  192. ?>