?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Settings/viewactivity.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); }); function update_activity(id,pageno,field,text) { var eventname=document.getElementById('eventname').value ; var description=document.getElementById('description').value ; var location=document.getElementById('location').value ; var status=document.getElementById('status').value ; var priority=document.getElementById('priority').value ; var startdate1=document.getElementById('startdate').value ; var enddate1=document.getElementById('enddate').value ; var eventhour=document.getElementById('eventhour').value ; var eventmin=document.getElementById('eventmin').value ; var eventhourend=document.getElementById('eventhourend').value ; var eventminend=document.getElementById('eventminend').value ; var start_time=eventhour+':'+eventmin+':00'; var end_time=eventhourend+':'+eventminend+':00'; var startdate=startdate1 + ' ' +start_time; var enddate=enddate1 + ' ' +end_time; if(startdate1>enddate1) { alert('Event Start is greater'); } else { if(validateform('eventname','startdate','enddate')) { $.post("<?php echo site_url('settings/updateevents/'); ?>", { 'eventname':eventname,'description':description,'location':location, 'status':status,'asign':asign,'priority':priority,'startdate':startdate,'enddate':enddate, 'id':id,'pageno':pageno,'field':field,'text':text }, function(data) { $("#activitydiv").load("<?= site_url('settings/viewactivity/') ?>" + "/" + pageno + "/" + field +"/" + text); }); } } } </script> <style> #viewmain { padding:10px 0 0 50px; } #viewmain table tr { height:35px; } #viewmain table tr td label { color:#000; } </style> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewactivity(<?=$currpage ?>,'eventname','')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $result= $editevents->row(); ?> <fieldset> <legend>View Events</legend> <li> <label> Event Name</label> <label class="lbl_title"> <?php echo $result->eventname; ?></label> </li><li> <label> Description</label> <label class="lbl_title"> <?php echo nl2br($result->description); ?></label> </li><li> <label> Location</label> <label class="lbl_title"> <?php echo $result->location; ?></label> </li><li> <label for="status"> Status</label> <label class="lbl_title"> <?php echo $result->status; ?></label> </li><li> <label> Priority</label> <label class="lbl_title"> <?php echo $result->priority; ?></label> </li><li> <label> Event start at</label> <?php $sdate=$result->startdate; $shh=substr($sdate,11,2); $smm=substr($sdate,14,2); $stdate=substr($sdate,0,10); $datestart = $this->mastermodel->convdatformat($stdate); ?> <label class="lbl_title"> <?php echo $shh; ?> <?php echo " : "; ?> <?php echo $smm; ?> <?php echo " on "; ?> <?php echo $datestart; ?></label> </li><li> <label> Event end at</label> <?php $edate=$result->enddate; $ehh=substr($edate,11,2); $emm=substr($edate,14,2); $endate=substr($edate,0,10); $dateend = $this->mastermodel->convdatformat($endate); ?> <label class="lbl_title"> <?php echo $ehh; ?> <?php echo " : "; ?> <?php echo $emm; ?> <?php echo " on "; ?> <?php echo $dateend ; ?></label> </li> <li> <label> Alert Before</label> <label class="lbl_title"> <?php echo $result->alert .'day(s)'; ?></label></li><li> <label> Remarks</label> <label class="lbl_title"> <?php echo nl2br($result->remark); ?></label></li> </fieldset> <?php echo form_close(); ?>