accountManage.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. global $lang;
  3. $accountManage = new stdClass();
  4. $accountManage->name = 'accountManage';
  5. $accountManage->title = $lang->tutorial->accountManage->title;
  6. $accountManage->icon = 'backend text-secondary text-lg';
  7. $accountManage->type = 'basic';
  8. $accountManage->modules = 'admin,company,dept,group';
  9. $accountManage->app = 'admin';
  10. $accountManage->tasks = array();
  11. $accountManage->tasks['deptManage'] = array();
  12. $accountManage->tasks['deptManage']['name'] = 'deptManage';
  13. $accountManage->tasks['deptManage']['title'] = $lang->tutorial->accountManage->deptManage->title;
  14. $accountManage->tasks['deptManage']['startUrl'] = array('admin', 'index');
  15. $accountManage->tasks['deptManage']['steps'] = array();
  16. $accountManage->tasks['deptManage']['steps'][] = array(
  17. 'type' => 'openApp',
  18. 'app' => 'admin',
  19. 'title' => $lang->tutorial->accountManage->deptManage->step1->name,
  20. 'desc' => $lang->tutorial->accountManage->deptManage->step1->desc
  21. );
  22. $accountManage->tasks['deptManage']['steps'][] = array(
  23. 'type' => 'click',
  24. 'target' => '#settings div[data-id="company"]',
  25. 'page' => 'admin-index',
  26. 'title' => $lang->tutorial->accountManage->deptManage->step2->name,
  27. 'desc' => $lang->tutorial->accountManage->deptManage->step2->desc
  28. );
  29. $accountManage->tasks['deptManage']['steps'][] = array(
  30. 'type' => 'clickNavbar',
  31. 'target' => 'dept',
  32. 'page' => 'company-browse',
  33. 'url' => array('company', 'browse'),
  34. 'title' => $lang->tutorial->accountManage->deptManage->step3->name,
  35. 'desc' => $lang->tutorial->accountManage->deptManage->step3->desc
  36. );
  37. $accountManage->tasks['deptManage']['steps'][] = array(
  38. 'type' => 'form',
  39. 'page' => 'dept-browse',
  40. 'title' => $lang->tutorial->accountManage->deptManage->step4->name
  41. );
  42. $accountManage->tasks['deptManage']['steps'][] = array(
  43. 'type' => 'saveForm',
  44. 'page' => 'dept-browse',
  45. 'title' => $lang->tutorial->accountManage->deptManage->step5->name,
  46. 'desc' => $lang->tutorial->accountManage->deptManage->step5->desc
  47. );
  48. $accountManage->tasks['addUser'] = array();
  49. $accountManage->tasks['addUser']['name'] = 'addUser';
  50. $accountManage->tasks['addUser']['title'] = $lang->tutorial->accountManage->addUser->title;
  51. $accountManage->tasks['addUser']['startUrl'] = array('dept', 'browse');
  52. $accountManage->tasks['addUser']['steps'] = array();
  53. $accountManage->tasks['addUser']['steps'][] = array(
  54. 'type' => 'clickNavbar',
  55. 'target' => 'browseUser',
  56. 'title' => $lang->tutorial->accountManage->addUser->step1->name,
  57. 'desc' => $lang->tutorial->accountManage->addUser->step1->desc
  58. );
  59. $accountManage->tasks['addUser']['steps'][] = array(
  60. 'type' => 'click',
  61. 'target' => '#actionBar a.create-user-btn',
  62. 'page' => 'company-browse',
  63. 'title' => $lang->tutorial->accountManage->addUser->step2->name,
  64. 'desc' => $lang->tutorial->accountManage->addUser->step2->desc
  65. );
  66. $accountManage->tasks['addUser']['steps'][] = array(
  67. 'type' => 'form',
  68. 'page' => 'user-create',
  69. 'title' => $lang->tutorial->accountManage->addUser->step3->name
  70. );
  71. $accountManage->tasks['addUser']['steps'][] = array(
  72. 'type' => 'saveForm',
  73. 'page' => 'user-create',
  74. 'title' => $lang->tutorial->accountManage->addUser->step4->name,
  75. 'desc' => $lang->tutorial->accountManage->addUser->step4->desc
  76. );
  77. $accountManage->tasks['privManage'] = array();
  78. $accountManage->tasks['privManage']['name'] = 'privManage';
  79. $accountManage->tasks['privManage']['title'] = $lang->tutorial->accountManage->privManage->title;
  80. $accountManage->tasks['privManage']['startUrl'] = array('company', 'browse');
  81. $accountManage->tasks['privManage']['steps'] = array();
  82. $accountManage->tasks['privManage']['steps'][] = array(
  83. 'type' => 'clickNavbar',
  84. 'target' => 'group',
  85. 'title' => $lang->tutorial->accountManage->privManage->step1->name,
  86. 'desc' => $lang->tutorial->accountManage->privManage->step1->desc
  87. );
  88. $accountManage->tasks['privManage']['steps'][] = array(
  89. 'type' => 'click',
  90. 'target' => '#actionBar a.group-create-btn',
  91. 'page' => 'group-browse',
  92. 'title' => $lang->tutorial->accountManage->privManage->step2->name,
  93. 'desc' => $lang->tutorial->accountManage->privManage->step2->desc
  94. );
  95. $accountManage->tasks['privManage']['steps'][] = array(
  96. 'type' => 'form',
  97. 'page' => 'group-browse',
  98. 'title' => $lang->tutorial->accountManage->privManage->step3->name
  99. );
  100. $accountManage->tasks['privManage']['steps'][] = array(
  101. 'type' => 'saveForm',
  102. 'page' => 'group-browse',
  103. 'title' => $lang->tutorial->accountManage->privManage->step4->name,
  104. 'desc' => $lang->tutorial->accountManage->privManage->step4->desc
  105. );
  106. $accountManage->tasks['privManage']['steps'][] = array(
  107. 'type' => 'click',
  108. 'target' => 'div.dtable div[data-row="2"][data-col="actions"] a.group-manageMember-btn',
  109. 'page' => 'group-browse',
  110. 'url' => array('group', 'browse'),
  111. 'title' => $lang->tutorial->accountManage->privManage->step5->name,
  112. 'desc' => $lang->tutorial->accountManage->privManage->step5->desc
  113. );
  114. $accountManage->tasks['privManage']['steps'][] = array(
  115. 'type' => 'form',
  116. 'page' => 'group-browse',
  117. 'title' => $lang->tutorial->accountManage->privManage->step6->name
  118. );
  119. $accountManage->tasks['privManage']['steps'][] = array(
  120. 'type' => 'saveForm',
  121. 'page' => 'group-browse',
  122. 'title' => $lang->tutorial->accountManage->privManage->step7->name,
  123. 'desc' => $lang->tutorial->accountManage->privManage->step7->desc
  124. );
  125. $accountManage->tasks['privManage']['steps'][] = array(
  126. 'type' => 'click',
  127. 'target' => 'div.dtable div[data-row="2"][data-col="actions"] a.group-managepriv-btn',
  128. 'page' => 'group-browse',
  129. 'url' => array('group', 'browse'),
  130. 'title' => $lang->tutorial->accountManage->privManage->step8->name,
  131. 'desc' => $lang->tutorial->accountManage->privManage->step8->desc
  132. );
  133. $accountManage->tasks['privManage']['steps'][] = array(
  134. 'type' => 'click',
  135. 'target' => 'div[data-module="todo"][data-package="manageTodo"] i.icon',
  136. 'page' => 'group-managepriv',
  137. 'title' => $lang->tutorial->accountManage->privManage->step9->name
  138. );
  139. $accountManage->tasks['privManage']['steps'][] = array(
  140. 'type' => 'saveForm',
  141. 'page' => 'group-managepriv',
  142. 'title' => $lang->tutorial->accountManage->privManage->step10->name,
  143. 'desc' => $lang->tutorial->accountManage->privManage->step10->desc
  144. );