createusertask.blade.php
3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
$varid=Input::get("varid");
//TODO check saved $varid
//$empdata=$wakka->LoadSingle("select * from person where id='$varid'");
//$ppldata=unserialize($empdata['peopledata'])
//if(isset($ppldata['firstname']))
$personarr=$wakka->getPerson($varid);
?>
<div id=wresults></div>
<iframe name=wresultsf id="wresultsf" style='width:0px;height:0px;display:none'></iframe>
<!-- Tabs -->
<div id="tabs">
<ul>
<li><a href="#tabs-1" style="color: #fff;font-size: 20px;padding-left: 2%;font-weight: 600;background-color: #48cfae;display: block;padding: 20px;">Create Task</a></li>
</ul>
<div id=tabs-1>
<fieldset>
<div style="margin: 20px 0;font-size: 14px;">Task Details for Emp
<span style="border: 1px solid #48cfae;border-radius: 20px;padding: 3px 10px;"><?php echo $varid; ?></span>
</div>
<form method=post enctype='multipart/form-data' target=wresultsf action="hr?action=WorkflowSubmit">
<input type=hidden name=_token value='<?php echo csrf_token(); ?>'>
<fieldset id="task" class="usersettings"><legend class='task_legend'>Add New Task</legend>
<p>
<label for="name" class='label-small_new' style='width:15%'>Task Name</label>
<select id="name" name="name" class='form_hrm_select'>
<option></option>
<?php
$mtaskarr=$wakka->LoadSingle("select * from hrms_masters where mtype='tasks' and mkey='employeetasks';");
$tasklines=explode("\n",$mtaskarr["mvalue"]);
foreach($tasklines as $tline)if(trim($tline)!="")echo "<option value='$tline'>$tline</option>";
?>
</select>
</p>
<p>
<label for="assignto" class='label-small_new' style='width:15%' >Assign to</label>
<select id="assignto" name="assignto[]" class='form_hrm_select'>
<?php
$uids=$wakka->loadAllDBUsers();
foreach($uids as $uid)echo "<option value='$uid[name]'>$uid[name] - $uid[role]</option>";
?>
</select>
</p>
<p>
<label for="attach" class='label-small_new' style='width:15%' >Attachment</label>
<input id="attach" type="file" name="attach" size="40"/>
</p>
<p>
<label for="duration" class='label-small_new' style='width:15%' >Completed By Date</label>
<input type=text name=duration class='' id=datepickerT style='width:30%'>
</p>
<p>
<label for="duration" class='label-small_new' style='width:15%' >Time (Hrs)</label>
<select name=time class='form_hrm_select'><option value=20>EOD</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
<option value=13>13</option>
<option value=14>14</option>
<option value=15>15</option>
<option value=16>16</option>
<option value=17>17</option>
<option value=18>18</option>
<option value=19>19</option>
<option value=20>20</option>
</select>
</p>
<p>
<label for="remarks" class='label-small_new' style='width:15%'>Description</label>
<textarea name=remarks id=remarks style=' width: 30%;'>Task Details for Emp : <?php echo $varid; ?> (<?php echo $personarr['peopledata']['client']; ?>)</textarea>
</p>
<label class='label-small_new' style='width:15%' style='width:25%'> </label>
<input type=hidden name=proempid value='<?php echo $varid; ?>'>
<input type=hidden name=empname value='<?php echo $personarr['peopledata']['firstname']." ".$personarr['peopledata']['lastname']; ?>'>
<input type=submit name=addtask id=addtask value="Create Task" class='btn btn-green'>
<input type=hidden id=timezone name=timezone value=''>
</fieldset>
<div style='height:20px'></div>
</form>
</fieldset>
</div>
</div>
<script>
function disablesubmit()
{
}
<?php echo "$('#datepickerT').datepicker({dateFormat: 'dd.mm.yy',inline: true,changeYear: true,selectOtherMonths: true,yearRange: '".(date('Y')-70).":".(date('Y')+20)."'});"; ?>
</script>