function draw2_table($result) { echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n"; echo "<tr>\n"; echo "<th class=result>Κωδικός Ασθενή</th>"; echo "<th class=result>'Ονομα</th>"; echo "<th class=result>Επώνυμο</th>"; echo "<th class=result>Ημερομηνία<BR>Γέννησης</th>"; echo "<th class=result>Τελευταία επίσκεψη<BR>στην κλινική</th>"; echo "<th class=result>Αιτία \"Lost to Follow Up\"</th>"; echo "</tr>\n"; $num_rows = mysql_num_rows($result); for ($j = 0; $j < $num_rows; $j++) { $i = 0; $resultrow = mysql_fetch_assoc($result); echo "<tr>\n"; echo "<td align=center class=result>"; echo "<a href='intermediate.php?code=" . $resultrow['PatientCode'] . "'>" . $resultrow['PatientCode'] . "</a>"; echo "</td>"; echo "<td align=center class=result>"; echo $resultrow['Name']; echo "</td>"; echo "<td align=center class=result>"; echo $resultrow['Surname']; echo "</td>"; echo "<td align=center class=result>"; echo show_date($resultrow['BirthDate']); echo "</td>"; echo "<td align=center class=result>"; echo show_date($resultrow['MAX(DateOfVisit)']); echo "</td>"; echo "<td align=center class=result>"; if ($resultrow['Lost2FollowUp'] == 1) { echo "Ο ασθενής δεν έχει εμφανιστεί τον τελευταίο χρόνο"; } else { if ($resultrow['Lost2FollowUp'] == 4) { echo "Απόφαση Ασθενούς"; } else { echo "'Aλλη αιτία"; } } echo "</td>"; echo "</tr>\n"; } echo "</table>"; }
function show_patient_data($code) { $query = "SELECT * FROM patients WHERE PatientCode = " . $code; $result = execute_query($query); $row = mysql_fetch_array($result); mysql_free_result($result); echo "<input type=hidden name='PatientCode' value='" . $row['PatientCode'] . "' />"; echo "<table>"; echo "<tr><td><b>Κωδικός Ασθενή: " . $row['PatientCode'] . "</b> </td>"; if ($row['MELCode'] != "-1") { echo "<td><b>Κωδικός ΜΕΛ: " . $row['MELCode'] . "</b></td></tr>"; } else { echo "<td></td></tr>"; } echo "<tr><td><b>'Oνομα: " . $row['Name'] . "</b> </td><td><b>Eπώνυμο: " . $row['Surname'] . "</b></td></tr>"; echo "<tr><td colspan=2><b>Ημερομηνία Γέννησης: " . show_date($row['BirthDate']) . "</b></td></tr>"; echo "<tr><td colspan=2><a href='alter_patient.php?code=" . $row['PatientCode'] . "'><small><b>Αλλαγή Ονόματος & Ημερομηνίας Γέννησης</b></small></a></td></tr>"; echo "<tr><td></td><td></td></tr>"; echo "</table>"; }
<?php include "mf-core.php"; $angebot_id = $_POST['id']; $r = fetch_one_ride($angebot_id); ?> <p class="title">Mitfahrer eintragen:</p> <br> <p><?php echo show_date($r['time']); ?> ; <?php echo $r['von']; ?> ⇨ <?php echo $r['nach']; ?> </p> <p>Fahrer: <?php echo $r['name']; ?> , Fahrzeug: <?php echo $r['fahrzeug']; ?> </p> <p>Preis: <?php echo $r['preis']; ?> </p> <br>
<div id="logo"><?php echo img(array('src' => 'images/logo.png', 'alt' => 'Logo')); ?> </div> <div id="topbar"> <?php echo lang('overal.server_time'); ?> : <?php echo show_date(); ?> </div>
#else # $sql_comment = DBGet(DBQuery("SELECT ID,COMMENT_DATE,COMMENT,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME)AS USER_NAME FROM STUDENT_MP_COMMENTS,STAFF s WHERE STUDENT_ID='".$_SESSION['student_id']."' AND STUDENT_MP_COMMENTS.SYEAR='".UserSyear()."' AND MARKING_PERIOD_ID='".GetParentMP('SEM',UserMP())."' AND s.STAFF_ID=STUDENT_MP_COMMENTS.STAFF_ID")); //$sql_comment = "select * from STUDENT_MP_COMMENTS where student_id='".$_SESSION['student_id']."'"; $res_comment = mysql_query($sql_comment); while ($row_comment = mysql_fetch_array($res_comment)) { if ($_REQUEST['category']['4'] && $row_comment['COMMENT'] != '') { #DrawHeader($categories_RET['4'][1]['TITLE']); //include('modules/Students/includes/Comments.inc.php'); echo "<table width=100%><tr><td colspan=2 style=\"border-bottom:1px solid #333; font-size:14px; font-weight:bold;\">Comment</td></tr>"; if ($row_comment['USER_NAME'] != '') { echo "<tr><td width=21% valign='top' style='font-weight:bold'>Entered by:</td>"; echo "<td width=79% align=justify>" . $row_comment['USER_NAME'] . "</td></tr>"; } if ($row_comment['COMMENT_DATE'] != '') { echo "<tr><td width=21% valign='top' style='font-weight:bold'>Date:</td>"; echo "<td width=79% align=justify>" . show_date($row_comment['COMMENT_DATE']) . "</td></tr>"; } if ($row_comment['COMMENT'] != '') { echo "<tr><td width=21% valign='top' style='font-weight:bold'>Comment:</td>"; echo "<td width=79% align=justify>" . $row_comment['COMMENT'] . "</td></tr>"; } echo '</table>'; echo '<!-- NEW PAGE -->'; } } echo "</td></tr>"; echo "<tr><td colspan=3 valign=top>"; //===NEWLY ADDED==================================================================================== $cus_RET = DBGet(DBQuery("SELECT sfc.ID,cf.ID as ID1,cf.TITLE, sfc.TITLE AS TITLE1, cf.TYPE, cf.SELECT_OPTIONS, cf.DEFAULT_SELECTION, cf.REQUIRED\r\n FROM CUSTOM_FIELDS AS cf, STUDENT_FIELD_CATEGORIES AS sfc\r\n WHERE sfc.ID = cf.CATEGORY_ID\r\n AND sfc.ID != '1'\r\n AND sfc.ID != '2'\r\n AND sfc.ID != '3'\r\n AND sfc.ID != '4'\r\n AND sfc.ID != '5'\r\n GROUP BY cf.category_id\r\n ORDER BY cf.ID")); //$fields_RET = DBGet(DBQuery("SELECT cf.ID,cf.TITLE,sfc.TITLE as TITLE1,cf.TYPE,cf.SELECT_OPTIONS,cf.DEFAULT_SELECTION,cf.REQUIRED FROM CUSTOM_FIELDS as cf,STUDENT_FIELD_CATEGORIES as sfc WHERE sfc.ID=cf.CATEGORY_ID and sfc.ID != '1' and sfc.ID != '2' and sfc.ID != '3' and sfc.ID != '4' and sfc.ID != '5' ORDER BY cf.SORT_ORDER,cf.TITLE ")); foreach ($cus_RET as $cus) {
?> </td> <td align="center"><?php echo show_date($data["round_start"]); ?> </td> <td align="center"><?php echo show_date($data["round_end"]); ?> </td> <td align="center"><?php echo show_date($data["deal_start"]); ?> </td> <td align="center"><?php echo show_date($data["deal_expile"]); ?> </td> <td align="center"><?php echo number_format($data["product_price"]); ?> </td> <td align="center"><?php echo number_format($data["the_best_deal_price"]); ?> </td> <td align="center"><?php echo $data["product_discount_per"]; ?> %</td> <?
$gole_end_dt = show_date($glst_dt); echo '<tr><td><b>Goal Title: </b></td><td>' . $row_goal[2] . '</td></tr>'; echo '<tr><td><b>Begin Date: </b></td><td>' . $gole_st_dt . '</td></tr>'; echo '<tr><td><b>End Date: </b></td><td>' . $gole_end_dt . '</td></tr>'; echo '<tr><td valign=top><b>Goal Description: </b></td><td>' . $row_goal[5] . '</td></tr>'; echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>"; if ($progress == 'Y') { $sql_pro = "SELECT * FROM PROGRESS WHERE STUDENT_ID='" . $_SESSION['student_id'] . "' AND GOAL_ID='" . $goal_id . "' ORDER BY PROGRESS_NAME"; $res_pro = mysql_query($sql_pro); echo '<tr><td><b><u>Progress Details</u></b></td><td> </td></tr>'; echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>"; while ($row_pro = mysql_fetch_array($res_pro)) { $pr_id = $row_pro[0]; $pr_cp_id = $row_pro[7]; $pr_dt = $row_pro[3]; $progress_dt = show_date($pr_dt); $sql_pro_cp = "SELECT TITLE FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='" . $pr_cp_id . "'"; $res_pro_cp = mysql_query($sql_pro_cp); $row_pro_cp = mysql_fetch_array($res_pro_cp); $pr_cp_title = $row_pro_cp[0]; echo '<tr><td><b>Date of Entry: </b></td><td>' . $progress_dt . '</td></tr>'; # ----------------------------- CP ------------------------------------------------- # echo '<tr><td><b>Course Period: </b></td><td>' . $pr_cp_title . '</td></tr>'; # ----------------------------- CP ------------------------------------------------- # echo '<tr><td><b>Progress Period Name: </b></td><td>' . $row_pro[4] . '</td></tr>'; echo '<tr><td><b>Proficiency: </b></td><td>' . $row_pro[5] . '</td></tr>'; echo '<tr><td><b>Progress Assessment: </b></td><td>' . $row_pro[6] . '</td></tr>'; echo "<tr><td colspan=2 style=\"height:18px\"></td></tr>"; } } echo "<tr><td colspan=2 style=\"height:18px; border-top:1px solid #333;\"></td></tr>";
echo "<input type=hidden name=start value=" . $_GET['start'] . ">"; echo "<input type=hidden name=end value=" . $_GET['end'] . ">"; echo "<input type=hidden name=link_id value=" . $_GET['link_id'] . ">"; echo "<input type=hidden name=Medicine value=" . $_GET['Medicine'] . ">"; echo "<b>1η Δόση:</b>"; echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n"; echo "<tr>\n"; $i = 0; echo "<th class=result>Φάρμακο</th>"; echo "<td class=result>" . $_GET['Medicine'] . "</td>"; echo "</tr>\n"; echo "<th class=result>Ημερομηνία<BR>Έναρξης</th>"; echo "<td class=result>" . show_date($row['StartDate']) . "</td>"; echo "</tr>\n"; echo "<th class=result>Ημερομηνία<BR>Διακοπής</th>"; echo "<td class=result>" . show_date($row['EndDate']) . "</td>"; echo "<tr>"; echo "<th class=result>Δόση</th>"; echo "<td class=result>"; $name = $_GET['Medicine']; ?> <input name="dosage1<?php echo $id; ?> " size=6 value="<?php echo $row['Dosage1']; ?> "> <select name="dosage1type<?php echo $id;
echo "<th class=result> Ημερομηνία Εισόδου </th>"; echo "<th class=result> Ημερομηνία Εξόδου </th>"; echo "<th class=result> Διάγνωση </th>"; echo "<th class=result> Έκβαση </th>"; echo "</tr>\n"; $num_rows = mysql_num_rows($result); if ($num_rows == 0) { echo "</table><p> Δεν υπάρχουν καταχωρημένα στοιχεία!</p>"; } else { for ($j = 0; $j < $num_rows; $j++) { $resultrow = mysql_fetch_assoc($result); echo "<tr>\n"; echo "<td align=center> <input type=checkbox name='del_exam_sw_" . $j . "'><input type=hidden name='del_start_" . $j . "' value='" . $resultrow['EntryDate'] . "'>"; echo "<input type=hidden name='del_end_" . $j . "' value='" . $resultrow['ExitDate'] . "'><input type=hidden name='del_diag_" . $j . "' value='" . $resultrow['Diagnosis'] . "'><input type=hidden name='del_ekb_" . $j . "' value='" . $resultrow['Ekbasi'] . "'></td>\n"; echo "<td class=result>" . show_date($resultrow['EntryDate']) . "</td>"; echo "<td class=result>" . show_date($resultrow['ExitDate']) . "</td>"; if (substr($resultrow['Diagnosis'], 0, 2) == "XX" && substr($resultrow['Diagnosis'], 2, 2) != "99") { echo "<td class=result> " . $entry_id[$resultrow['Diagnosis']] . "</td>"; } else { echo "<td class=result> " . $resultrow['Diagnosis'] . " <img src=\"./images/b_help.png\" style=\"cursor: pointer\" onclick=\"window.open('./icd-10/findcode.php?code=" . $resultrow['Diagnosis'] . "', 'Εύρεση Κωδικού ICD-10', 'width=450,height=300,status=yes');\"/></td>"; } if ($resultrow['Ekbasi'] == 1) { echo "<td class=result>Θάνατος</td>"; } else { if ($resultrow['Ekbasi'] == 2) { echo "<td class=result>'Ιαση / Βελτίωση</td>"; } else { if ($resultrow['Ekbasi'] == 3) { echo "<td class=result>Αμετάβλητη</td>"; } else { echo "<td class=result>'Αγνωστη</td>";
public static function validateDate($key, $label) { $value = NewRequest::Field($key); $value = show_date($value); if (self::$sanitize == true) { $_REQUEST[$key] = ""; } if ($value == "") { self::$error = "The date " . $label . " is not a valid date."; return -1; } return 1; }
?> <div> <div class="posts-block" onclick="window.open('<?php echo $international['link']; ?> ', '_blank')"> <div class="post-block-title"> <p><?php echo $international['name_' . $lng]; ?> </p> </div> <div class="date-social-posts"> <div class="date-time-posts"> <span><i class="mdi mdi-calendar-clock"></i><?php echo show_date($international['data']); ?> </span> </div> </div> </div> </div> <?php } ?> </div> </div> </div>
add_mitfahrer($angebot_id, $mf_name, $mf_tel, $mf_email); $mf_id = find_mitfahrer($angebot_id, $mf_email); if ($mf_id == 0) { //problem with database, return 2 echo 2; } else { //everything is ok return 0 echo 0; //everyone involved should get an email $angebot = fetch_one_ride($angebot_id); $f_name = $angebot['name']; $f_tel = $angebot['tel']; $f_email = $angebot['email']; $von = $angebot['von']; $nach = $angebot['nach']; $datum = show_date($angebot['time']); $zeit = show_time($angebot['time']); $treffpunkt = $angebot['treffpunkt']; $dtstart = make_dtcomponent($angebot['time']); $dtend = make_dtcomponent($angebot['time'] + 30 * 60); //duration 30 minutes $ics = make_ics($dtstart, $dtend, $treffpunkt, $von, $nach); $mitfahrer_msg = make_mitfahrer_message($mf_name, $von, $nach, $datum, $zeit, $f_name, $f_tel, $f_email); $subject = "Mitfahrgelegenheit ({$von} -> {$nach}) am {$datum}, {$zeit}"; $from = "*****@*****.**"; $mitfahrer_email = make_email($mf_email, $from, $subject, $mitfahrer_msg); $mitfahrer_email = add_attachment($mitfahrer_email, $ics); send_mail($mitfahrer_email); $fahrer_msg = make_neuer_mitfahrer_message($f_name, $von, $nach, $datum, $zeit, $mf_name, $mf_tel, $mf_email); $fahrer_email = make_email($f_email, $from, $subject, $fahrer_msg); $fahrer_email = add_encoding($fahrer_email);
} mysql_free_result($results); $b_entry_query = "SELECT clinical_symptoms_descriptions.ID as id, clinical_symptoms_descriptions.Description as symptom, patients_category_b.ClinicSymptomDate as date FROM patients_category_b,clinical_symptoms_descriptions WHERE patients_category_b.ClinicSymptom = clinical_symptoms_descriptions.ID AND PatientCode=" . $_GET['code']; // ." GROUP BY clinical_symptoms_descriptions.ID"; $results = execute_query($b_entry_query); $num = mysql_num_rows($results); if ($num != 0) { echo "<input type=hidden name='sympt' value='" . $num . "'>"; echo "<table width='100%'>\n"; echo "<th align=center>Διαγραφή</th><th align=center>Κλινικά Συμπτώματα <font color=red>(Κατάσταση Β)</font></th><th align=center>Ημερομηνία</th>"; for ($i = 0; $i < $num; $i++) { $row = mysql_fetch_assoc($results); echo "<tr>\n"; echo "<td align=center><input type=checkbox name='del_sympt_sw_" . $i . "'><input type=hidden name='del_sympt_id_" . $i . "' value='" . $row['id'] . "'></td>\n"; echo "<td>" . $row['symptom'] . "</td>\n"; echo "<td align=center>" . show_date($row['date']) . "<input type=hidden name='del_sympt_date_" . $i . "' value='" . $row['date'] . "'></td>\n"; echo "</tr>\n"; } echo "</table>\n"; $is_b = true; } mysql_free_result($results); ?> </DIV> <?php $query = "SELECT * FROM patients_category_a WHERE PatientCode=" . $_GET['code']; $result = execute_query($query); $has_entry = mysql_num_rows($result); $row = mysql_fetch_assoc($result); mysql_free_result($result); if ($has_entry) {
public static function FieldD($key, $default = "", $format = "Y-m-d", $isWindowsDate = false) { if ($key != "") { $request = $_REQUEST; if (isset($request[$key]) && (is_numeric($request[$key]) || $request[$key] != "" && !empty($request[$key]))) { if (!is_array($request[$key])) { //if (is_numeric($request[$key])) { // return floatval($request[$key]); //} //else { if ($isWindowsDate == true) { $date2 = changeMysqlDate($request[$key]); } else { $date2 = $request[$key]; } $retVal = show_date($date2); if (show_date($retVal) == "") { return $default; } else { return show_date($date2, $format); } //} } else { return $request[$key]; } } else { return $default; } } else { return $default; } }
/** * To post the affiliate questions * * @access public * @param nil * @return void */ function manageAffiliates() { //Load model $this->load->model('settings_model'); //load validation library $this->load->library('form_validation'); //Load Form Helper $this->load->helper('form'); //Intialize values for library and helpers $this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag')); if (!isset($this->loggedInUser->id)) { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You can not access to this page'))); redirect('info'); } $condition = array('sales.refid' => $this->loggedInUser->user_name); $this->outputData['affiliate_sales'] = $this->affiliate_model->getAffiliateSales($condition); // get affiliate sales total $condition1 = array('sales.refid' => $this->loggedInUser->user_name); $this->outputData['affiliate_sales_total'] = $this->affiliate_model->getSalesTotal($condition1); // get affiliate welcome messages $condition2 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name, 'msg_status' => 0); $msg_result = $this->affiliate_model->getAffiliateWelcomeMsg($condition2); $msg_num_rows = $msg_result->num_rows(); $msg_result_row = $msg_result->row(); if (isset($msg_result_row->welcome_msg)) { $this->outputData['affiliate_welcome_msg'] = $msg_result_row->welcome_msg; } //Innermenu tab selection $this->outputData['innerClass5'] = ''; $this->outputData['innerClass5'] = 'selected'; if ($this->input->post('welcomemsg')) { //Set rules $this->form_validation->set_rules('welcome_message', 'lang:welcome_message_validation', 'required|trim|xss_clean'); if ($this->form_validation->run()) { $welcome_msg = $this->input->post('welcome_message'); if ($msg_num_rows == 0) { //prepare insert data $insertData = array(); $insertData['refid'] = $this->loggedInUser->user_name; $insertData['welcome_msg'] = $welcome_msg; //print_r($insertData); //Add Category $this->affiliate_model->addAffiliateWelcomeMsg($insertData); $this->session->set_flashdata('flash_message', $this->common_model->admin_flash_message('success', $this->lang->line('updated_success'))); //$this->load->view('affiliate/affilateCenter',$this->outputData); } else { $updateKey1 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name, 'id' => $msg_result_row->id); $updateData1 = array(); $updateData1['welcome_msg '] = $welcome_msg; //Update Site Settings $this->affiliate_model->updateAffiliateWelcomeMeg($updateKey1, $updateData1); $this->session->set_flashdata('flash_message', $this->common_model->admin_flash_message('success', $this->lang->line('updated_success'))); } } } // get affiliate welcome messages $condition2 = array('affiliate_welcome_msg.refid' => $this->loggedInUser->user_name); $msg_result = $this->affiliate_model->getAffiliateWelcomeMsg($condition2); $msg_num_rows = $msg_result->num_rows(); $msg_result_row = $msg_result->row(); if (isset($msg_result_row->welcome_msg)) { $this->outputData['affiliate_welcome_msg'] = $msg_result_row->welcome_msg; } // insert total affiliate amount $this->load->model('affiliate_model'); $this->load->model('user_model'); $results = $this->affiliate_model->getReleasePayments(); //pr($results->result()); if ($results->num_rows() > 0) { foreach ($results->result() as $row) { //prepare insert data $insertData = array(); $insertData['refid'] = $row->refid; $insertData['account_type'] = $row->account_type; $insertData['payment'] = $row->total; // get user $condition = array('users.user_name' => $insertData['refid']); $user_data = $this->user_model->getUsers($condition); //$user_data_result = $user_data->result(); $user_data_row = $user_data->row(); $user_id = 0; if (isset($user_data_row->id)) { if ($user_data_row->id != '') { $user_id = $user_data_row->id; } } $insertData['user_id'] = $user_id; $insertData['created_date'] = get_est_time(); $date_with_time = show_date($insertData['created_date']); $arr = explode(' ', $date_with_time); //pr($arr_str); for ($i = 0; $i < count($arr); $i++) { $mon = $arr[0]; $year = $arr[2]; } $created_date_forrmat = $mon . ", " . $year; $insertData['created_date_format'] = $created_date_forrmat; $insertData['is_released'] = '0'; $unrelease_condition = array('refid' => $row->refid, 'is_released' => '0'); $unrelease_results = $this->affiliate_model->getUnReleasePayments($unrelease_condition); $unreleased_row = $unrelease_results->row(); $released_condition = array('refid' => $row->refid, 'is_released' => '1'); $released_results = $this->affiliate_model->getUnReleasePayments($released_condition); $released_row = $released_results->row(); if ($unrelease_results->num_rows() > 0) { $updateKey['payment'] = $row->total; $cond = array('affiliate_unreleased_payments.refid' => $row->refid, 'affiliate_unreleased_payments.id' => $unreleased_row->id); $result = $this->affiliate_model->updateUnReleasedPayments(TRUE, $updateKey, $cond); } else { if ($released_results->num_rows() > 0) { foreach ($released_results->result() as $row1) { $sales_total = $row->total; $released_total = $row1->total; $check_balance = $sales_total - $released_total; if ($check_balance > 0) { //prepare insert data $insertData1 = array(); $insertData1['refid'] = $row->refid; $insertData1['account_type'] = $row->account_type; $insertData1['payment'] = $check_balance; $user_id; $insertData1['user_id'] = $user_id; $insertData1['created_date'] = get_gmt_time(); $insertData1['created_date_format'] = $created_date_forrmat; $insertData1['is_released'] = '0'; $condition = array('users.user_name' => $insertData1['refid']); $this->affiliate_model->addUnReleasedPayments($insertData1); } } } } if ($unrelease_results->num_rows() == 0 and $released_results->num_rows() == 0) { $this->affiliate_model->addUnReleasedPayments($insertData); } } } //exit; $cond = array('affiliate_released_payments.refid' => $this->loggedInUser->user_name); $released_amount = $this->affiliate_model->getReleasedPayments($cond); $this->outputData['released_amount'] = $released_amount; $this->load->view('affiliate/affilateCenter', $this->outputData); }
?> "> <div class="multi-img "> <div class="play_multi_btn"></div> <img src="http://i1.ytimg.com/vi/<?php echo get_youtube_id_from_url($video['iframe']); ?> /sddefault.jpg"> </div> <div class="multi-content"> <span class="multi-title" style="height: 56px;overflow: hidden;"><?php echo $video['name_' . $lng]; ?> </span> <p class="date"><i class="mdi mdi-calendar-clock"></i><?php echo show_date($video['data']); ?> </p> </div> </a> </li> <?php } ?> </ul> </div> <?php if (count($cetateanul_activ) > 0) { ?> <div class="margin">
?> <a href="/<?php echo $lng . '/' . get_pre_url_table($lng, $item->table, $item->id) . $item->{'url_' . $lng}; ?> ">[...]</a> </p> </div> <div class="date-social-arhiv"> <span class="name"><?php echo $item->autor; ?> </span> <div class="date-time-arhiv"> <span><i class="mdi mdi-calendar-clock"></i><?php echo show_date($item->data); ?> </span> <span><i class="mdi mdi-eye"></i><?php echo $item->visits; ?> </span> </div> <div class="search_cat"><?php echo get_cat_search($lng, $item->table); ?> </div> </div> </div> </div> </div>
} ?> <FORM action=delete_antiretro_data_step2.php method="POST"> <?php echo "<P><B> Επειδή το φαρμακευτικό σχήμα άλλαξε, δώστε την συμμόρφωση και τις αιτίες διακοπής για το νέο φαρμακευτικό σχήμα </B></P>"; echo "<TABLE><TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Φαρμακευτικό Σχήμα</TH><TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Χρονικό Διάστημα χορήγησης</TH>"; echo "<TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Συμμόρφωση Ασθενούς</TH><TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Αιτία<BR>διακοπής 1</TH>"; echo "<TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Αιτία<BR>διακοπής 2</TH>"; echo "<TH style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; background-color: #99FFFF'>Σημειώσεις</TH>"; for ($i = 0; $i < count($old_dates) - 1; $i++) { if ($old_schema[$i] != "") { echo "<TR><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>" . $old_schema[$i] . "</TD><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>Από " . show_date($old_dates[$i]); if ($old_dates[$i + 1] == "3000-01-01") { echo "</TD>"; } else { echo " εως " . show_date($old_dates[$i + 1]) . "</TD>"; } if ($old_dates[$i + 1] != "3000-01-01") { echo "<TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>"; echo "<input type=radio name='comp" . $i . "' value='-1' checked> 'Αγνωστη <input type=radio name='comp" . $i . "' value='1'> Κακή <input type=radio name='comp" . $i . "' value='2'> Μέτρια <input type=radio name='comp" . $i . "' value='3'> Καλή</TD>"; ?> <TD align="center" style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'> <select name=Reason1_<?php echo $i; ?> > <option value="99" selected>99</option> <?php echo $reasons_str; ?> </select>
/** * Accept project from Buyer who accepted your bid * * @access public * @param project id and checkstamp * @return contents */ function acceptProject() { //Load Language $this->lang->load('enduser/acceptProject', $this->config->item('language_code')); //Check For Programmer Session if (!isProgrammer()) { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You must be logged in as a programmer to accept projects'))); redirect('users/login'); } $project_id = $this->uri->segment(3, '0'); $checkstamp = $this->uri->segment(4, '0'); if (isset($project_id)) { $updateKey = array('projects.id' => $project_id); $updateData['notification_status'] = '1'; $this->skills_model->updateProjects(NULL, $updateData, $updateKey); } $conditions = array('projects.id' => $project_id, 'projects.checkstamp' => $checkstamp, 'projects.project_status' => '1', 'projects.programmer_id' => $this->loggedInUser->id); $project = $this->skills_model->getProjects($conditions); $projectRow = $project->row(); if (!is_object($projectRow)) { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You cannot accept this project'))); redirect('info'); } //Check Ecrow Released or not $paymentSettings = $this->settings_model->getSiteSettings(); $forced_escrow = $this->config->item('forced_escrow'); if ($forced_escrow == 1) { $projectRow_id = $project_id; $condition = array('transactions.type' => 'Escrow Transfer', 'transactions.project_id' => $projectRow_id); $transactions = $this->transaction_model->getTransactions($condition); //$transactions->num_rows(); $transactionrow = $transactions->row(); if (!is_object($transactionrow)) { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You have not released the Escrow Amount'))); redirect('info'); } else { $status = $transactionrow->status; $escrow_projectid = $transactionrow->project_id; if ($status = '' or $escrow_projectid == '') { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', $this->lang->line('You have not released the Escrow Amount.'))); redirect('info'); } } } //Check User Balance $this->load->model('transaction_model'); $condition_balance = array('user_balance.user_id' => $this->loggedInUser->id); $results = $this->transaction_model->getBalance($condition_balance); if ($results->num_rows() > 0) { //get balance detail $rowBalance = $results->row(); $bal = $rowBalance->amount; $min_bal = $this->config->item('payment_settings'); $commission = $this->config->item('provider_commission_amount'); // Puhal changes to get the % of the winning bid $cond = array('project_id' => $project_id, 'user_id' => $this->loggedInUser->id); $bid_amount = $this->common_model->getTableData('bids', $cond, 'bid_amount'); $bid_amount_fetch = $bid_amount->row(); $commission = $commission * $bid_amount_fetch->bid_amount / 100; $rem = $bal - $commission; if ($bal < $min_bal || $rem < $min_bal) { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', 'Your account balance is too low')); redirect('programmer/viewMyProjects'); } $updateKey = array('user_balance.user_id' => $this->loggedInUser->id); $updateData = array('amount' => $rem); $results1 = $this->transaction_model->updateBalance($updateKey, $updateData); } else { $this->session->set_flashdata('flash_message', $this->common_model->flash_message('error', 'Your have no balance in your account to accept the projects')); redirect('programmer/viewMyProjects'); } $buyerId = $projectRow->creator_id; $programmerId = $projectRow->programmer_id; $conditions2 = array('users.id' => $buyerId); $buyer = $this->user_model->getUsers($conditions2); $buyerRow = $buyer->row(); $conditions3 = array('users.id' => $programmerId); $programmer = $this->user_model->getUsers($conditions3); $programmerRow = $programmer->row(); $updateKey = array('projects.id' => $project_id, 'projects.checkstamp' => $checkstamp, 'projects.programmer_id' => $programmerId); $updateData = array('projects.project_status' => '2'); $upProject = $this->skills_model->accpetProject($updateKey, $updateData); if (isset($project_id)) { //Load model $this->load->model('settings_model'); $this->load->model('affiliate_model'); // get projects for this user $condition = array('projects.id' => $project_id); $mpr = $this->skills_model->getProjects($condition); $prj = $mpr->row(); // get user $condition = array('users.id' => $this->loggedInUser->id); $user_data = $this->user_model->getUsers($condition); //$user_data_result = $user_data->result(); $user_data_row = $user_data->row(); // get affiliate payments $affiliate_result = $this->affiliate_model->getAffiliatePayment(); $buyer_affiliate_fee = $affiliate_result['buyer_affiliate_fee']; $programmer_affiliate_fee = $affiliate_result['programmer_affiliate_fee']; $buyer_min_payout = $affiliate_result['buyer_min_payout']; $programmer_min_payout = $affiliate_result['programmer_min_payout']; $buyer_project_fee = $affiliate_result['buyer_project_fee']; $programmer_project_fee = $affiliate_result['programmer_project_fee']; //get affiliate settings $settings = $this->settings_model->getSiteSettings(); $provider_settings_fee = $settings['PROVIDER_COMMISSION_AMOUNT']; $featured_project_amount = $settings['FEATURED_PROJECT_AMOUNT']; if ($prj->project_status == 2 and $prj->programmer_id == $this->loggedInUser->id and $prj->checkstamp == $checkstamp) { if (isset($user_data_row->refid) and $user_data_row->refid != "0") { $refid = $user_data_row->refid; $role_id = $user_data_row->role_id; $referral = $user_data_row->user_name; $signup_date = $user_data_row->created; $date_with_time = show_date($signup_date); $arr_str = explode(',', $date_with_time); $arr = explode(" ", trim($arr_str[1])); for ($i = 0; $i < count($arr); $i++) { $mon = $arr[1]; $year = $arr[2]; } $signup_date_format = $mon . ", " . $year; $conditions = array('bids.user_id' => $prj->programmer_id, 'bids.project_id' => $prj->id); $totbid = $this->skills_model->getBids($conditions); $result_bid = $totbid->row(); $bid_amount = $result_bid->bid_amount; if ($role_id == 1) { if ($prj->is_feature == 1) { $featured_project_amount = $settings['FEATURED_PROJECT_AMOUNT'] * ($buyer_project_fee / 100); $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision = $provider_percentage_amount * ($buyer_project_fee / 100); $commision_amount = $featured_project_amount + $commision; } else { $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision_amount = $provider_percentage_amount * ($buyer_affiliate_fee / 100); } // insert affiliate sales $clientdate = $this->config->item('clientdate'); $clienttime = $this->config->item('clienttime'); $clientbrowser = $this->config->item('clientbrowser'); $clientip = $this->config->item('clientip'); //prepare insert data $insertData = array(); $insertData['refid'] = $refid; $insertData['created_date'] = "{$clientdate}"; $insertData['created_time'] = "{$clienttime}"; $insertData['browser'] = "{$clientbrowser}"; $insertData['ipaddress'] = "{$clientip}"; $insertData['payment'] = $commision_amount; $insertData['referral'] = $referral; $insertData['account_type'] = $role_id; $insertData['signup_date'] = $signup_date; $insertData['signup_date_format'] = $signup_date_format; //$insertData['is_released']='0'; //Add Category $this->affiliate_model->addAffiliateSales($insertData); } if ($role_id == 2) { if ($prj->is_feature == 1) { $featured_project_amount = $settings['FEATURED_PROJECT_AMOUNT'] * ($programmer_project_fee / 100); $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision = $provider_percentage_amount * ($programmer_project_fee / 100); $commision_amount = $featured_project_amount + $commision; } else { $programmer_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision_amount = $programmer_percentage_amount * ($programmer_affiliate_fee / 100); } // insert affiliate sales $clientdate = $this->config->item('clientdate'); $clienttime = $this->config->item('clienttime'); $clientbrowser = $this->config->item('clientbrowser'); $clientip = $this->config->item('clientip'); //prepare insert data $insertData = array(); $insertData['refid'] = $refid; $insertData['created_date'] = "{$clientdate}"; $insertData['created_time'] = "{$clienttime}"; $insertData['browser'] = "{$clientbrowser}"; $insertData['ipaddress'] = "{$clientip}"; $insertData['payment'] = $commision_amount; $insertData['referral'] = $referral; $insertData['account_type'] = $role_id; $insertData['signup_date'] = $signup_date; $insertData['signup_date_format'] = $signup_date_format; // $insertData['is_released']='0'; //print_r($insertData); //Add Category $this->affiliate_model->addAffiliateSales($insertData); } } else { // get user $condition1 = array('users.id' => $prj->creator_id); $user_data1 = $this->user_model->getUsers($condition1); //$user_data_result = $user_data->result(); $user_data_row1 = $user_data1->row(); if (isset($user_data_row1->refid)) { $refid = $user_data_row1->refid; $role_id = $user_data_row1->role_id; $referral = $user_data_row1->user_name; $signup_date = $user_data_row->created; $date_with_time = show_date($signup_date); $arr_str = explode(',', $date_with_time); $arr = explode(" ", trim($arr_str[1])); for ($i = 0; $i < count($arr); $i++) { $mon = $arr[1]; $year = $arr[2]; } $signup_date_format = $mon . ", " . $year; $conditions2 = array('bids.user_id' => $prj->programmer_id, 'bids.project_id' => $prj->id); $totbid = $this->skills_model->getBids($conditions2); $result_bid = $totbid->row(); $bid_amount = $result_bid->bid_amount; if ($role_id == 1) { if ($prj->is_feature == 1) { $featured_project_amount = $settings['FEATURED_PROJECT_AMOUNT'] * ($buyer_project_fee / 100); $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision = $provider_percentage_amount * ($buyer_project_fee / 100); $commision_amount = $featured_project_amount + $commision; } else { $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision_amount = $provider_percentage_amount * ($buyer_affiliate_fee / 100); } // insert affiliate sales $clientdate = $this->config->item('clientdate'); $clienttime = $this->config->item('clienttime'); $clientbrowser = $this->config->item('clientbrowser'); $clientip = $this->config->item('clientip'); //prepare insert data $insertData = array(); $insertData['refid'] = $refid; $insertData['created_date'] = "{$clientdate}"; $insertData['created_time'] = "{$clienttime}"; $insertData['browser'] = "{$clientbrowser}"; $insertData['ipaddress'] = "{$clientip}"; $insertData['payment'] = $commision_amount; $insertData['referral'] = $referral; $insertData['account_type'] = $role_id; $insertData['signup_date'] = $signup_date; $insertData['signup_date_format'] = $signup_date_format; // $insertData['is_released']='0'; //Add Category $this->affiliate_model->addAffiliateSales($insertData); } if ($role_id == 2) { if ($prj->is_feature == 1) { $featured_project_amount = $settings['FEATURED_PROJECT_AMOUNT'] * ($programmer_project_fee / 100); $provider_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision = $provider_percentage_amount * ($programmer_project_fee / 100); $commision_amount = $featured_project_amount + $commision; } else { $programmer_percentage_amount = $bid_amount * ($provider_settings_fee / 100); $commision_amount = $programmer_percentage_amount * ($programmer_affiliate_fee / 100); } // insert affiliate sales $clientdate = $this->config->item('clientdate'); $clienttime = $this->config->item('clienttime'); $clientbrowser = $this->config->item('clientbrowser'); $clientip = $this->config->item('clientip'); //prepare insert data $insertData = array(); $insertData['refid'] = $refid; $insertData['created_date'] = "{$clientdate}"; $insertData['created_time'] = "{$clienttime}"; $insertData['browser'] = "{$clientbrowser}"; $insertData['ipaddress'] = "{$clientip}"; $insertData['payment'] = $commision_amount; $insertData['referral'] = $referral; $insertData['account_type'] = $role_id; $insertData['signup_date'] = $signup_date; $insertData['signup_date_format'] = $signup_date_format; //$insertData['is_released']='0'; //Add Category $this->affiliate_model->addAffiliateSales($insertData); } } } } } if ($upProject == 1) { //Load Model For Mail $this->load->model('email_model'); //Send Mail to Buyer $conditionUserMail = array('email_templates.type' => 'project_accepted_buyer'); $result = $this->email_model->getEmailSettings($conditionUserMail); $rowUserMailConent = $result->row(); $splVars = array("!programmer_username" => $programmerRow->user_name, "!project_title" => $projectRow->project_name, "!programmer_email" => $programmerRow->email, "!contact_url" => site_url('contact')); $mailSubject = $this->lang->line($rowUserMailConent->mail_subject); $mailContent = strtr($rowUserMailConent->mail_body, $splVars); $toEmail = $buyerRow->email; $fromEmail = $this->config->item('site_admin_mail'); $this->email_model->sendHtmlMail($toEmail, $fromEmail, $mailSubject, $mailContent); //Send Mail to Programmer $conditionUserMail2 = array('email_templates.type' => 'project_accepted_programmer'); $result2 = $this->email_model->getEmailSettings($conditionUserMail2); $rowUserMailConent2 = $result2->row(); $splVars2 = array("!project_title" => $projectRow->project_name, "!buyer_username" => $buyerRow->user_name, "!buyer_email" => $buyerRow->email, "!contact_url" => site_url('contact')); $mailSubject2 = $this->lang->line($rowUserMailConent2->mail_subject); $mailContent2 = strtr($rowUserMailConent2->mail_body, $splVars2); $toEmail2 = $programmerRow->email; $fromEmail2 = $this->config->item('site_admin_mail'); $this->email_model->sendHtmlMail($toEmail2, $fromEmail2, $mailSubject2, $mailContent2); //Notification message $this->session->set_flashdata('flash_message', $this->common_model->flash_message('success', $this->lang->line('You have successfully accepted the project'))); redirect('info/index/success'); } }
echo $lng . '/' . $method . '/' . $item['url']; ?> "><?php echo $item['title_ro']; ?> </a></h3> </div> <div class="post-body"> <p><?php echo read_more($item["text_ro"], 50); ?> ...</p> </div> <div class="date-social-posts"> <div class="date-time-posts"><span><i class="mdi mdi-calendar-clock"></i><?php echo show_date($item['date_publish']); ?> </span></div> </div> </div> </div> <?php $ls++; } ?> </div> <div class="pagination"><?php echo $pagination; ?> </div> </div>
} echo ' <div class="col-md-6 list_mid grid_mid" style="color:#000"> <div class="product_name_style" ><h4>' . $row['i_name'] . '</h4></div> <p>' . $row['i_cat_name'] . ' > ' . $row['sub_category'] . '</p> <p>'; if ($row['i_available'] == 1) { echo 'Available'; } else { echo 'Unavailable'; } echo '</p> <p> Item for ' . $row['i_user_type'] . '</p> <p><span class="label label-warning " style="font-size:16px; font-weight:normal">$$ ' . $row['i_price'] . '</span></p> </div> <div class="col-md-3 list_right grid_right"> <div class="style_post_date">' . show_date($row['adate']) . '</div> </div> </div> </a></li>'; } echo '</ul>'; //echo '</div>'; ?> </div> </div><?php //For product view ?> <div class="row"> <div class="col-md-12 text-right">
<h3><span class="clsMyEscrow"><?php echo $this->lang->line('Buyer Account Management'); ?> </span></h3> <p class="clsTopMar"><?php echo $this->lang->line('Welcome'); ?> <?php echo $loggedInUser->name; ?> ! <font color="#6b80a1"><?php echo $this->lang->line('Local time'); ?> </font><?php echo show_date(time()); ?> </p> <?php //Show Flash error Message after login successfully if ($msg = $this->session->flashdata('flash_message')) { echo $msg; } ?> <h3><span class="clsHigh"><?php echo $this->lang->line('My Withdraw Transactions'); ?> </span></h3> <table cellspacing="1" cellpadding="2" width="96%"> <tbody><tr>
echo "</table><p> Δεν υπάρχουν καταχωρημένα στοιχεία!</p>"; } else { $jj = 0; $today = getdate(); $now_days = round(strtotime("now") / 86400); for ($j = 0; $j < $num_rows; $j++) { $i = 0; $resultrow = mysql_fetch_assoc($result); echo "<tr>\n"; echo "<td align=center><img src='./images/b_drop.png' style='cursor: pointer' onclick='delete_schema(\"" . $resultrow['Schema'] . "\", \"" . $resultrow['StartDate'] . "\", \"" . $resultrow['EndDate'] . "\");'><br><br><img src='./images/b_edit.png' style='cursor: pointer' "; echo "onclick='location.href=\"hbv_edit_antiiikes_extra.php?code=" . $_GET['code'] . "&schema=" . $resultrow['Schema'] . "&start=" . $resultrow['StartDate'] . "&end=" . $resultrow['EndDate'] . "\";'>"; echo "<td class=result style='width: 150px'>" . $resultrow['Schema'] . "</td>"; echo "<td class=result>" . show_date($resultrow['StartDate']) . "</td>"; echo "<td class=result>"; if ($resultrow['EndDate'] != "3000-01-01") { echo show_date($resultrow['EndDate']); } else { echo "<div onclick='location.href=\"hbv_edit_antiiikes_extra.php?code=" . $_GET['code'] . "&schema=" . $resultrow['Schema'] . "&start=" . $resultrow['StartDate'] . "&end=" . $resultrow['EndDate'] . "\";' style='cursor:pointer; background-color:#ffb1b1'>"; echo "<font color='blue'>Προσθήκη</font> <img src='./images/b_edit.png'></div>"; // echo " "; } echo "</td>"; echo "<td class=result>"; ?> <center><u><b>Βιοχημική Ανταπόκριση:</b></u></center> <table> <?php echo "<tr><td>Αρχική:<BR><i>(φυσιολογική ALT)</i> </td><td>"; if ($resultrow['Bioximiki_arxiki'] != -1) { if ($resultrow['Bioximiki_arxiki'] == 1) { echo "<b>NAI,</b> Ημ/νια " . $resultrow['Bioximiki_arxiki_date'] . "</td></tr>";
echo "<tr>\n"; echo "<td align=center> <input type=checkbox name='del_exam_sw_" . $j . "'><input type=hidden name='del_id_" . $j . "' value='" . $resultrow['SampleID'] . "'>"; echo "<input type=hidden name='del_date2_" . $j . "' value='" . $resultrow['SeqDate'] . "'>"; echo "<input type=hidden name='del_art_" . $j . "' value='" . $resultrow['ARTCode'] . "'>"; echo "</td>\n"; while ($i < mysql_num_fields($result)) { $field = mysql_fetch_field($result, $i); if ($field->name == "Boosting") { if ($resultrow[$field->name] == '1') { echo "<td class=result>NAI</td>"; } else { echo "<td class=result>OXI</td>"; } } else { if ($field->name == "SeqDate") { echo "<td class=result>" . show_date($resultrow[$field->name]) . "</td>"; } else { echo "<td class=result>" . $resultrow[$field->name] . "</td>"; } } $i++; } echo "</tr>\n"; } echo "</table>"; echo "<p> "; echo " <input type=submit value='Διαγραφή'></p>"; echo "</form>"; } mysql_free_result($result); ?>
echo "<tr>\n"; while ($i < mysql_num_fields($result)) { $field = mysql_fetch_field($result, $i); echo "<td class=result>"; if ($field->name == "Κωδικός Ασθενή") { echo "<a href='#' onclick='javascript:returnReason(" . $resultrow[$field->name] . ")'>" . $resultrow[$field->name] . "</a>"; } else { if ($field->name == "Κωδικός ΜΕΛ") { if ($resultrow[$field->name] == "-1") { echo "(δεν υπάρχει)"; } else { echo $resultrow[$field->name]; } } else { if ($field->name == "Ημερομηνία Γέννησης") { echo show_date($resultrow[$field->name]); } else { echo $resultrow[$field->name]; } } } echo "</td>"; $i++; } echo "</tr>\n"; } } echo "</table>"; } mysql_free_result($result); }
<div class="container"> <div class="row"> <div class="col-xs-24"> <span class="name"><?php echo $vars[21][$lng]; ?> <strong><?php echo $investigatie['autor']; ?> </strong> </span> </div> <div class="col-md-24 col-sm-24 col-xs-24" style="margin-top:15px;"> <div class="col-md-10"> <span><i class="fa fa-calendar"></i> <?php echo show_date($investigatie['data']); ?> </span> <span><i class="fa fa-eye"></i> <?php echo $investigatie['visits']; ?> </span> <span class="shares"><i class="fa fa-share-alt"></i></span> </div> <div class="col-md-14"> <div class="url-share social pull-right"> <ul> <li><a href="http://www.facebook.com/sharer.php?u=<?php echo current_url(); ?>
$update_query = mysql_query($update_sql); $insert_sql = sprintf("INSERT INTO kommentar(uppgift_id, kommentar, tid, kommentar_av) VALUES('%s','%s','%s','%s')", $uid, $comments, time(), $_SESSION['sendMe']['id']); $insert_query = mysql_query($insert_sql); $message = "Din kommentar och ditt omdöme registerades."; unset($_POST); } } require 'top.php'; $sql = "SELECT id, user_id, name_orig, inlamnad, rattad, rattad_av, kurs_id FROM uppgifter WHERE name_orig='{$name}' AND inlamnad='{$time}' LIMIT 1"; $q = mysql_query($sql); if (mysql_num_rows($q) == 1) { $r = mysql_fetch_array($q); $kurs = db_get_course_name(stripslashes($r['kurs_id'])); $user = db_get_user_name(stripslashes($r['user_id'])); $filnamn = stripslashes($r['name_orig']); $inlamnad = show_date(stripslashes($r['inlamnad'])); $rattad = stripslashes($r['rattad']); $rattad_av = stripslashes($r['rattad_av']); ?> <table> <tr><td>Kurs:</td><td><?php echo $kurs; ?> </td><td>Användare:</td><td><?php echo $user; ?> </td></tr> <tr><td>Filnamn:</td><td><?php echo $filnamn; ?> <a href='getfile.php?file=<?php
echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n"; echo "<tr>\n"; echo "<th class=result>Σχήμα</th>"; echo "<th class=result>Ημερομηνία<BR>Έναρξης</th>"; echo "<th class=result>Ημερομηνία<BR>Διακοπής</th>"; echo "<th class=result>Συμμόρφωση<BR>Ασθενούς</th>"; echo "<th class=result>Αιτία<BR>Διακοπής 1</th>"; echo "<th class=result>Αιτία<BR>Διακοπής 2</th>"; echo "<th class=result>Σημειώσεις</th>"; echo "</tr>\n"; for ($i = 0; $i < count($corrected2); $i++) { echo "<TR>"; echo "<TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>"; echo $corrected2[$i]['schema']; echo "</TD><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>" . show_date($corrected2[$i]['start']); echo "</TD><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>" . show_date($corrected2[$i]['end']); echo "</TD><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF'>"; //.$corrected2[$i]['compliance']; if ($corrected2[$i]['compliance'] == "-1") { echo "'Αγνωστη"; } if ($corrected2[$i]['compliance'] == "1") { echo "Κακή"; } if ($corrected2[$i]['compliance'] == "2") { echo "Μέτρια"; } if ($corrected2[$i]['compliance'] == "3") { echo "Καλή"; } echo "</TD><TD style='font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #FFFFFF; width: 300px'>" . $reasons[$corrected2[$i]['reason1']];
} ?> <header> <aside class="headband-card <?php echo get_post_custom_values('stage-district')[0]; ?> "> <h2 class="card-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> <span class="card-date"><?php show_date(get_the_ID()); ?> </span> <span class="tag-label"> <?php $tags = get_the_tags(); foreach ($tags as $tag) { $permalink = get_post_custom_values('route-link')[0]; echo '<a href="' . $permalink . '">' . "#" . $tag->name . '</a>'; } ?> </span> </aside> </header> <div>
?> <item> <title><?php echo $project->project_name; ?> </title> <link><?php echo site_url('project/view/' . $project->id); ?> </link> <guid><?php echo site_url('project/view/' . $project->id); ?> </guid> <pubDate><?php echo show_date($project->created); ?> </pubDate> <?php switch ($type) { case 2: echo '<description>'; echo word_limiter($project->description, 100); echo '</description>'; case 3: echo '<description>'; echo $project->description; echo '</description>'; } ?> </item>