forked from uicestone/systar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<form method="post" name="<?=CONTROLLER?>" id="<?=$this->people->id?>" enctype="multipart/form-data"> | ||
<div class="item"> | ||
<div class="title"><label>基本信息:</label></div> | ||
<input name="people[name]" value="<?=$this->value('people/name'); ?>" type="text" placeholder="中文名" /> | ||
|
||
<input name="people[phone]" value="<?=$this->value('people/phone'); ?>" type="text" placeholder="电话" /> | ||
<input name="people[email]" value="<?=$this->value('people/email'); ?>" type="text" placeholder="电子邮件" /> | ||
<?=checkbox('单位', 'people[character]', $this->value('people/character'), '单位')?> | ||
<?if($this->value('people/character')=='单位'){?> | ||
<input name="people[abbreviation]" value="<?=$this->value('people/abbreviation')?>" placeholder="简称" /> | ||
<?}else{?> | ||
<select name="people[gender]"><?=options(array('男','女'), $this->value('people/gender'), '性别')?></select> | ||
<input type="text" name="people[id_card]" value="<?=$this->value('people/id_card'); ?>" placeholder="身份证" style="width:195px;" /> | ||
<input type="text" name="people[birthday]" value="<?=$this->value('people/birthday'); ?>" placeholder="生日" class="date" /> | ||
<input name="people[name_en]" value="<?=$this->value('people/name_en'); ?>" type="text" placeholder="英文名" /> | ||
<input type="text" name="people[work_for]" value="<?=$this->value('people/work_for')?>" placeholder="工作单位" /> | ||
<input type="text" name="people[position]" value="<?=$this->value('people/position')?>" placeholder="职位" /> | ||
<?}?> | ||
|
||
</div> | ||
|
||
<?if($people['type']=='client'){?> | ||
<div class="item"> | ||
<div class="title"><label>来源:</label></div> | ||
<select name="profiles[来源类型]"> | ||
<?=options($this->config->user_item('客户来源类型'),$this->value('profiles/来源类型'),'来源类型')?> | ||
</select> | ||
|
||
<input type="text" name="profiles[来源]" value="<?=$this->value('profiles/来源')?>" <?if(!$this->value('profiles/来源')){?>class="hidden" disabled="disabled"<?}?> /> | ||
<input type="text" name="people[staff_name]" placeholder="来源律师" value="<?=$this->value('people/staff_name')?$this->value('people/staff_name'):$this->user->name?>" /> | ||
</div> | ||
<?}?> | ||
|
||
<div class="item" name="profile"> | ||
<div class="title"><label>资料项</label></div> | ||
<?=$profile_list?> | ||
<button type="button" class="toggle-add-form">+</button> | ||
<span class="add-form hidden"> | ||
<select name="profile[name]" class="chosen allow-new" data-placeholder="资料项名称"> | ||
<?=options($profile_name_options,$this->value('profile/name'),'',false,false,false)?> | ||
</select> | ||
<input type="text" name="profile[content]" value="<?=$this->value('profile/content')?>" placeholder="资料项内容" /> | ||
<input type="text" name="profile[comment]" value="<?=$this->value('profile/comment')?>" placeholder="备注" /> | ||
|
||
<button type="submit" name="submit[profile]">添加</button> | ||
</span> | ||
</div> | ||
|
||
<div class="item" name="relative"> | ||
<div class="title"><label>相关人</label></div> | ||
<?=$relative_list?> | ||
<button type="button" class="toggle-add-form">+</button> | ||
<span class="add-form hidden"> | ||
<input type="hidden" name="relative[id]" class="tagging" data-placeholder="名称" data-ajax="/people/match/" /> | ||
<select name="relative[relation]" class="chosen allow-new" data-placeholder="关系"> | ||
<?=options($this->config->user_item(($this->value('people/character')=='单位'?'单位':'个人').'相关人关系'),$this->value('relative/relation'),'',false,false,false)?> | ||
</select> | ||
<button type="submit" name="submit[relative]">添加</button> | ||
</span> | ||
</div> | ||
|
||
<div class="item"> | ||
<div class="title"><label>相关事务</label></div> | ||
<?=$project_list?> | ||
</div> | ||
|
||
<div class="item" name="schedule"> | ||
<div class="title"> | ||
<span class="right"> | ||
<?=(double)$this->schedule->getSum(array('people'=>$this->people->id,'completed'=>true))?>小时 | ||
<a href="#schedule/lists?people=<?=$this->value('people/id')?>">所有日程>></a> | ||
</span> | ||
<label>最新日程: | ||
<a href="javascript:$.createSchedule({people:<?=$this->value('people/id')?>,refreshOnSave:true})">添加>></a> | ||
</label> | ||
</div> | ||
<?=$schedule_list?> | ||
</div> | ||
|
||
<div class="item"> | ||
<div class="title"><label>备注:</label></div> | ||
<textarea name="people[comment]"><?=$this->value('people/comment')?></textarea> | ||
</div> | ||
</form> | ||
<?=$this->javascript('people_add')?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters