m.profile.html.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. /**
  3. * The profile view mobile view file of my module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package my
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $bodyClass = 'with-menu-top';
  15. include "../../common/view/m.header.html.php";
  16. include "./m.featurebar.html.php";
  17. ?>
  18. <div id='page' class='list-with-actions'>
  19. <div class='section no-margin'>
  20. <div class='heading gray'>
  21. <div class='title'> <?php echo $lang->user->profile;?></div>
  22. </div>
  23. <div class='box'>
  24. <table class='table bordered table-detail'>
  25. <tr>
  26. <td class='w-100px'><?php echo $lang->user->dept;?></td>
  27. <td>
  28. <?php
  29. if(empty($deptPath))
  30. {
  31. echo "/";
  32. }
  33. else
  34. {
  35. foreach($deptPath as $key => $dept)
  36. {
  37. if($dept->name) echo $dept->name;
  38. if(isset($deptPath[$key + 1])) echo $lang->arrow;
  39. }
  40. }
  41. ?>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td><?php echo $lang->user->account;?></td>
  46. <td><?php echo $user->account;?></td>
  47. </tr>
  48. <tr>
  49. <td><?php echo $lang->user->realname;?></td>
  50. <td><?php echo $user->realname;?></td>
  51. </tr>
  52. <tr>
  53. <td><?php echo $lang->user->role;?></td>
  54. <td><?php echo $lang->user->roleList[$user->role];?></td>
  55. </tr>
  56. <tr>
  57. <td><?php echo $lang->group->priv;?></td>
  58. <td><?php foreach($groups as $group) echo $group->name . ' '; ?></td>
  59. </tr>
  60. <tr>
  61. <td><?php echo $lang->user->commiter;?></td>
  62. <td><?php echo $user->commiter;?></td>
  63. </tr>
  64. <tr>
  65. <td><?php echo $lang->user->email;?></td>
  66. <td><?php echo $user->email;?></td>
  67. </tr>
  68. <tr>
  69. <td><?php echo $lang->user->join;?></td>
  70. <td><?php echo $user->join;?></td>
  71. </tr>
  72. <tr>
  73. <td><?php echo $lang->user->visits;?></td>
  74. <td><?php echo $user->visits;?></td>
  75. </tr>
  76. <tr>
  77. <td><?php echo $lang->user->ip;?></td>
  78. <td><?php echo $user->ip;?></td>
  79. </tr>
  80. <tr>
  81. <td><?php echo $lang->user->last;?></td>
  82. <td><?php echo $user->last;?></td>
  83. </tr>
  84. <?php if(!empty($config->user->contactField)):?>
  85. <?php foreach(explode(',', $config->user->contactField) as $field):?>
  86. <tr>
  87. <td><?php echo $lang->user->$field;?></td>
  88. <td>
  89. <?php
  90. if($field == 'skype' and $user->$field)
  91. {
  92. echo html::a("callto://$user->skype", $user->skype);
  93. }
  94. elseif($field == 'qq' and $user->$field)
  95. {
  96. echo html::a("tencent://message/?uin=$user->qq", $user->qq);
  97. }
  98. else
  99. {
  100. echo $user->$field;
  101. }
  102. ?>
  103. </td>
  104. </tr>
  105. <?php endforeach;?>
  106. <?php endif;?>
  107. <tr>
  108. <td><?php echo $lang->user->address;?></td>
  109. <td><?php echo $user->address;?></td>
  110. </tr>
  111. <tr>
  112. <td><?php echo $lang->user->zipcode;?></td>
  113. <td><?php echo $user->zipcode;?></td>
  114. </tr>
  115. <?php if($user->ranzhi):?>
  116. <tr>
  117. <td><?php echo $lang->user->ranzhi;?></td>
  118. <td>
  119. <?php echo $user->ranzhi . ' ';?>
  120. <?php if(common::hasPriv('my', 'unbind')) echo html::a($this->createLink('my', 'unbind'), "<i class='icon-unlink'></i>", 'hiddenwin', "class='bin-icon' title='{$lang->user->unbind}'");?>
  121. </td>
  122. </tr>
  123. <?php endif;?>
  124. </table>
  125. </div>
  126. </form>
  127. </div>
  128. <script>
  129. $('#<?php echo $methodName?>' + 'Tab').addClass('active');
  130. </script>
  131. <?php include "../../common/view/m.footer.html.php"; ?>