| 12345 |
anikendra |
1 |
<?php echo $this->Html->css('jquery.datepick');?>
|
|
|
2 |
<?php echo $this->Html->css('autocomplete');?>
|
|
|
3 |
<style>
|
|
|
4 |
div.pair select{
|
|
|
5 |
margin-left:10px;
|
|
|
6 |
}
|
|
|
7 |
</style>
|
|
|
8 |
<h2>Edit Profile</h2>
|
|
|
9 |
<div id="profile" class="sign_up">
|
|
|
10 |
<div class="subwrap">
|
|
|
11 |
<fieldset><legend>Profile Picture</legend>
|
|
|
12 |
<?php if(!empty($this->data['User']['avatar'])): ?>
|
|
|
13 |
<img src="<?php echo $this->data['User']['avatar'];?>" width="250"
|
|
|
14 |
<?php endif;?>
|
|
|
15 |
<?php echo $this->Form->create('User',array('class'=>'form-inline','action'=>'uploadavatar','enctype'=>'multipart/form-data')); ?>
|
|
|
16 |
<label for="photoimg">Upload Avatar</label>
|
|
|
17 |
<input type="file" name="photoimg" id="photoimg"/>
|
|
|
18 |
<div class="clear"></div>
|
|
|
19 |
<div id='preview'></div>
|
|
|
20 |
<div class="clear"></div>
|
|
|
21 |
<?php echo $this->Form->end();?>
|
|
|
22 |
</fieldset>
|
|
|
23 |
<?php echo $this->Form->create('User');?>
|
|
|
24 |
<?php echo $this->Form->hidden('id', array('value' => $id)); ?>
|
|
|
25 |
<?php echo $this->Form->input('avatar',array('type' => 'hidden','value'=> $this->data['User']['avatar'])); ?>
|
|
|
26 |
<fieldset><legend>Name and Address</legend>
|
|
|
27 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
28 |
<label for="first_name" class="mandatory">First Name </label>
|
|
|
29 |
<?php echo $this->Form->input('first_name',array('label'=>false));?>
|
|
|
30 |
</div>
|
|
|
31 |
<div class="clear"></div>
|
|
|
32 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
33 |
<label for="last_name" class="mandatory">Last Name</label>
|
|
|
34 |
<?php echo $this->Form->input('last_name',array('label'=>false));?>
|
|
|
35 |
</div>
|
|
|
36 |
<div class="clear"></div>
|
|
|
37 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
38 |
<label for="first_name" class="mandatory">Address Line 1</label>
|
|
|
39 |
<?php echo $this->Form->input('address_1',array('label'=>false));?>
|
|
|
40 |
</div>
|
|
|
41 |
<div class="clear"></div>
|
|
|
42 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
43 |
<label for="last_name">Address Line 2</label>
|
|
|
44 |
<?php echo $this->Form->input('address_2',array('label'=>false));?>
|
|
|
45 |
</div>
|
|
|
46 |
<div class="clear"></div>
|
|
|
47 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
48 |
<label for="first_name" class="mandatory">City</label>
|
|
|
49 |
<?php echo $this->Form->input('cityname',array('label'=>false,'value'=>$this->data['User']['city']));?>
|
|
|
50 |
<?php echo $this->Form->hidden('city',array('label'=>false));?>
|
|
|
51 |
</div>
|
|
|
52 |
<div class="clear"></div>
|
|
|
53 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
54 |
<label for="last_name" class="mandatory">State</label>
|
|
|
55 |
<?php echo $this->Form->input('statename',array('label'=>false,'value'=>$this->data['User']['state']));?>
|
|
|
56 |
<?php echo $this->Form->hidden('state',array('label'=>false));?>
|
|
|
57 |
</div>
|
|
|
58 |
<div class="clear"></div>
|
|
|
59 |
<div class="dropdown" style="margin-left: 17px; width: 150px;">
|
|
|
60 |
<label for="first_name" class="mandatory">Country</label>
|
|
|
61 |
<?php echo $this->Form->input('country',array('options' => $countries,'default' => $this->data['User']['country'],'label'=>false,'class'=>'pad10'));?>
|
|
|
62 |
</div>
|
|
|
63 |
<div class="clear"></div>
|
|
|
64 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
65 |
<label for="zip_code" class="mandatory">Zip Code</label>
|
|
|
66 |
<?php echo $this->Form->input('zipcode',array('label'=>false));?>
|
|
|
67 |
</div>
|
|
|
68 |
</fieldset>
|
|
|
69 |
<fieldset class="personal_info" style="margin-bottom:10px;"><legend>Personal Info</legend>
|
|
|
70 |
<div class="dropdown" style="margin-left: 17px; width: 150px;">
|
|
|
71 |
<label for="sex" class="mandatory">Sex</label>
|
|
|
72 |
<select name="data[User][gender]" id="UserGender" class="pad10">
|
|
|
73 |
<option value="">-- Select --</option>
|
|
|
74 |
<option value="male" <?php if($this->data['User']['gender']=='male')echo "selected='selected'";?>>Male</option>
|
|
|
75 |
<option value="female" <?php if($this->data['User']['gender']=='female')echo "selected='selected'";?>>Female</option>
|
|
|
76 |
</select>
|
|
|
77 |
</div>
|
|
|
78 |
<div class="clear"></div>
|
|
|
79 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
80 |
<label for="dob" style="width:258px; padding-right:10;" class="mandatory">
|
|
|
81 |
Your Date of Birth
|
|
|
82 |
</label>
|
|
|
83 |
<input name="data[User][dob]" id="UserDob" autocomplete="false" value="<?php echo $this->data['User']['dob'];?>"/>
|
|
|
84 |
<span class="date_format">(YYYY-MM-DD)</span>
|
|
|
85 |
</div>
|
|
|
86 |
</fieldset>
|
|
|
87 |
<fieldset><legend>Email</legend>
|
|
|
88 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
89 |
<label for="email" class="mandatory">Email</label>
|
|
|
90 |
<?php echo $this->Form->input('email',array('label'=>false));?>
|
|
|
91 |
</div>
|
|
|
92 |
</fieldset>
|
|
|
93 |
<fieldset><legend>Timezone</legend>
|
|
|
94 |
<div class="textInput" style="margin-left: 17px; width: 150px;">
|
|
|
95 |
<label for="user_timezone" class="mandatory">Your local timezone</label>
|
|
|
96 |
<?php echo $this->Form->input('user_timezone',array('label'=>false,'type'=>'select','options'=>$timeZones));?>
|
|
|
97 |
</div>
|
|
|
98 |
</fieldset>
|
|
|
99 |
<br />
|
|
|
100 |
<button type="submit" value="submit" class="btn" id="editprofile">Save</button>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
</form>
|
|
|
104 |
|
|
|
105 |
<?php echo $this->Html->script('jquery.datepick');?>
|
|
|
106 |
<?php echo $this->Html->script('jquery.autocomplete.min');?>
|
|
|
107 |
<script type="text/javascript" src="<?php echo $base_url;?>js/jquery.form.js"></script>
|
|
|
108 |
<script>
|
|
|
109 |
var baseUrl = '<?php echo $base_url;?>';
|
|
|
110 |
var cityUrl = "<?php echo $base_url;?>cities/getbyname";
|
|
|
111 |
var countryUrl = "<?php echo $base_url;?>countries/getbyname";
|
|
|
112 |
var regionUrl = "<?php echo $base_url;?>regions/getbyname";
|
|
|
113 |
</script>
|
|
|
114 |
<?php echo $this->Html->script('jquery.validate');?>
|
|
|
115 |
<script src="<?php echo $base_url;?>js/editprofile.js"></script>
|