} else { echo "<p>Message sent! click <a href='index.php'>here</a> for back to home.</p> The receipient as below:<br>{$m->receipient}"; } // $m->sendemail(); break; case "sendsms": include_once "../system/class/SendMessage.php.inc"; include "../hes/class/Student.php"; $m = new SendMessage(); $st = new Student(); $st->isselected = $isselected; $m->emailtitle = $_POST['emailtitle']; $m->message = $_POST['msg']; $m->textlength = $_POST['textlength']; $m->subscriber_number = $st->getNumber(); $m->sendsms(); break; case "studentexam": $returnfalse = 0; $i = 0; foreach ($studentline_id as $student_id) { $i++; $total_outstanding = $total_outstandingline[$i]; $total_previousoutstanding = $total_previousoutstandingline[$i]; $isexam = $isexamline[$i]; if ($isexam == "on") { $isexam = 1; } else { $isexam = 0; } $sql = "update {$tablestudent}\r\n set isfinanceexam = {$isexam}, lastsemesterbalance = {$total_previousoutstanding},\r\n currentsemesterbalance = {$total_outstanding}\r\n where student_id = {$student_id} ";
public function sendWorkflowSMS() { global $sendsmsgroup, $smsid, $smspassword; $this->log->showLog(4, "run sendWorkflowSMS with isemail : {$this->issms}"); if ($this->issms == 1) { if ($smsid != "" && $smspassword != "") { include_once "../simantz/class/SendMessage.php.inc"; $m = new SendMessage(); $m->message = $this->sms_body; $m->textlength = strlen($this->sms_body); $m->arraynumber = explode(",", $this->sms_list); $m->convertArrayToNumber(); $m->sendsms(); } } }