* Finish task #56918.
This commit is contained in:
@@ -1155,7 +1155,7 @@ EOF;
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function manageContacts($listID = 0, $mode = '')
|
||||
public function manageContacts($listID = 0, $mode = 'new')
|
||||
{
|
||||
if($_POST)
|
||||
{
|
||||
@@ -1217,7 +1217,6 @@ EOF;
|
||||
}
|
||||
|
||||
$listID = $listID ? $listID : key($lists);
|
||||
if(!$listID) $mode = 'new';
|
||||
|
||||
/* Create or manage list according to mode. */
|
||||
if($mode == 'new')
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
body.body-modal {padding-bottom: 20px; min-height: 400px;}
|
||||
.side-col {padding-right: 40px; padding-top: 25px;}
|
||||
.side-col {padding-right: 40px;}
|
||||
.btn-block {display: block; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
|
||||
.title {margin-left: 45px !important;}
|
||||
.createBtn {width: 100%; margin-bottom: 5px;}
|
||||
|
||||
@@ -45,6 +45,7 @@ $lang->my->pri = 'Priority';
|
||||
$lang->my->alert = 'You can click on your profile at the top right and select "Preference" to modify your information. ';
|
||||
$lang->my->assignedToMe = 'AssignedToMe';
|
||||
$lang->my->byQuery = 'Search';
|
||||
$lang->my->contactList = 'Contact List';
|
||||
|
||||
$lang->my->indexAction = 'My Index';
|
||||
$lang->my->calendarAction = 'My Calendar';
|
||||
|
||||
@@ -45,6 +45,7 @@ $lang->my->pri = '优先级';
|
||||
$lang->my->alert = '后续您可以点击右上方的头像,选择“个性化设置”修改信息。';
|
||||
$lang->my->assignedToMe = '指派给我';
|
||||
$lang->my->byQuery = '搜索';
|
||||
$lang->my->contactList = '联系人列表';
|
||||
|
||||
$lang->my->indexAction = '地盘仪表盘';
|
||||
$lang->my->calendarAction = '我的日程';
|
||||
|
||||
@@ -11,21 +11,22 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div id='mainContent' class='main-content <?php if($mode == 'edit') echo ' main-row';?>'>
|
||||
<?php if($mode == 'edit'):?>
|
||||
<div id='mainContent' class='main-content main-row'>
|
||||
<div class='side-col'>
|
||||
<div class='main-header'><h2 class='title'><?php echo $lang->my->contactList;?></h2></div>
|
||||
<div>
|
||||
<?php echo html::a(inlink('managecontacts', "listID=0&mode=new"), '<i class="icon icon-plus"></i> ' . $lang->user->contacts->createList, '', "class='btn btn-secondary createBtn'"); ?>
|
||||
<?php
|
||||
foreach($lists as $id => $listName)
|
||||
{
|
||||
$listClass = ($id == $listID) ? 'btn btn-block active' : 'btn btn-block';
|
||||
$listClass = ($id == $listID and $mode == 'edit') ? 'btn btn-block active' : 'btn btn-block';
|
||||
$shareIcon = in_array($id, $globalContacts) ? '<i class="icon icon-share-sign"></i> ' : '';
|
||||
echo html::a(inlink('managecontacts', "listID=$id&mode=edit"), $shareIcon . $listName, '', "class='{$listClass}' title='$listName'");
|
||||
}
|
||||
?>
|
||||
<?php echo html::a(inlink('managecontacts', "listID=0&mode=new"), '<i class="icon icon-plus"></i> ' . $lang->user->contacts->createList, '', "class='btn btn-block'"); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main-col'>
|
||||
<?php endif;?>
|
||||
<div class='main-header'>
|
||||
<h2>
|
||||
<?php if($mode == 'new'):?>
|
||||
|
||||
Reference in New Issue
Block a user