当前位置: 首页>>代码示例>>PHP>>正文


PHP Table::setTable方法代码示例

本文整理汇总了PHP中Table::setTable方法的典型用法代码示例。如果您正苦于以下问题:PHP Table::setTable方法的具体用法?PHP Table::setTable怎么用?PHP Table::setTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Table的用法示例。


在下文中一共展示了Table::setTable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generatePassword

			$alert->setMessage($msg);
			$alert->Alert();
		}

		// GENERATE NEW PASSWORD ENTERED
		$newpass = generatePassword(strtoupper($new));

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET USER
		$user = new Table;
		$user->setSQLType($fms_db->getSQLType());
		$user->setInstance($fms_db->getInstance());
		$user->setTable("usermaster");
		$user->setValues("userPass = '$newpass'");
		$user->setParam("WHERE userID = '$id'");
		$user->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_USERCHANGEPASSWORD;
		$msg = "Password successfully changed.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
		$alert->Alert();
	}
开发者ID:rogerapras,项目名称:fms,代码行数:31,代码来源:userController.php

示例2: MessageAlert

	// -- START UPDATE MAKE --
	if(isset($_POST['update']) && !empty($_POST['update']) && $_POST['update'] == 1){
		$id = $_GET['id'];
		$makeName = $_POST['txtMakeName'];
		$status = $_POST['txtStatus'];

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET MAKE
		$make = new Table;
		$make->setSQLType($fms_db->getSQLType());
		$make->setInstance($fms_db->getInstance());
		$make->setTable("makemaster");
		$make->setValues("makeName = '$makeName', modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'");
		$make->setParam("WHERE makeID = '$id'");
		$make->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_MAKE;
		$msg = "Make successfully updated.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
		$alert->Alert();
	}
开发者ID:rogerapras,项目名称:fms,代码行数:30,代码来源:makeController.php

示例3: number

require_once 'Table.php';
?>

<html>
  <head>
    <title>Multiplication Tables</title>
    </head>
    <body>
      Multiplication Table <br/><br/>
      How to find out the multiplication table for any number (multiplied up to 12). <br/><br/>
      Just enter an number and hit &quot;Submit&quot;.<br/><br/>

      <form method="POST" action="">
        Number: <input name="number"/><br/>
        <input type="submit" value="Submit"/><br/><br/>
      </form>

<?php 
if (is_numeric($_POST['number']) && $_POST['number'] != '') {
    $myTable = new Table();
    $myTable->setTable('13', $_POST['number']);
    $myTable->multiply();
    $myTable->getResults();
} else {
    echo "Please enter a number (postive, negative, or decimal).";
}
?>
</body>
</html>
开发者ID:amylundell,项目名称:dig540,代码行数:29,代码来源:index.php

示例4: MessageAlert

		$suppAddress = $_POST['txtSupplierAddress'];
		$suppEmailAddress = $_POST['txtSupplierEmailAddress'];
		$suppContactNo = $_POST['txtSupplierContactNo'];
		$suppContactPerson = $_POST['txtSupplierContactPerson'];
		$suppTIN = $_POST['txtSupplierTIN'];
		$status = $_POST['txtStatus'];

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET SUPPLIER
		$supplier = new Table;
		$supplier->setSQLType($fms_db->getSQLType());
		$supplier->setInstance($fms_db->getInstance());
		$supplier->setTable("suppliermaster");
		$supplier->setValues("supplierName = '$suppName',supplierAddress = '$suppAddress',supplierEmailAddress = '$suppEmailAddress'
						,supplierContactNo = '$suppContactNo',contactPerson = '$suppContactPerson',TIN = '$suppTIN'
						,modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'");
		$supplier->setParam("WHERE supplierID = '$id'");
		$supplier->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_SUPPLIER;
		$msg = "Supplier successfully updated.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
开发者ID:rogerapras,项目名称:fms,代码行数:31,代码来源:supplierController.php

示例5: get_student_dataFN

function get_student_dataFN($id_student, $id_instance)
{
    $dh = $GLOBALS['dh'];
    $http_root_dir = $GLOBALS['http_root_dir'];
    $student_info_ha = $dh->_get_user_info($id_student);
    // Get info of each student
    if (AMA_DataHandler::isError($student_info_ha)) {
        $msg = $student_info_ha->getMessage();
        return $msg;
        break;
    }
    $instance_course_ha = $dh->course_instance_get($id_instance);
    // Get the instance courses data
    if (AMA_DataHandler::isError($instance_course_ha)) {
        $msg = $instance_course_ha->getMessage();
        return $msg;
        break;
    }
    $id_course = $instance_course_ha['id_corso'];
    $start_date = AMA_DataHandler::ts_to_date($instance_course_ha['data_inizio'], ADA_DATE_FORMAT);
    $info_course = $dh->get_course($id_course);
    // Get title course
    if (AMA_DataHandler::isError($info_course)) {
        $msg = $info_course->getMessage();
        return $msg;
        break;
    }
    $course_title = $info_course['titolo'];
    /*
        global $debug;$debug=1;
        mydebug(__LINE__,__FILE__,$student_info_ha);
        $debug = 0;
    */
    $name = $student_info_ha['nome'];
    $name_desc = "<B>" . translateFN("Nome") . "</B>";
    $surname = $student_info_ha['cognome'];
    $surname_desc = "<B>" . translateFN("Cognome") . "</B>";
    $email = $student_info_ha['email'];
    $email_desc = "<B>" . translateFN("Email") . "</B>";
    $phone_n = $student_info_ha['telefono'];
    $phone_desc = "<B>" . translateFN("Telefono") . "</B>";
    $user = $student_info_ha['username'];
    $user_desc = "<B>" . translateFN("User Name") . "</B>";
    $course_desc = "<B>" . translateFN("Titolo del Corso") . "</B>";
    $start_desc = "<B>" . translateFN("Data di inizio") . "</B>";
    $dati_stude[0]['name_desc'] = $name_desc;
    $dati_stude[0]['name'] = $name;
    $dati_stude[1]['surname_desc'] = $surname_desc;
    $dati_stude[1]['surname'] = $surname;
    $dati_stude[2]['email_desc'] = $email_desc;
    $dati_stude[2]['email'] = $email;
    $dati_stude[3]['phone_desc'] = $phone_desc;
    $dati_stude[3]['phone'] = $phone_n;
    $dati_stude[4]['user_desc'] = $user_desc;
    $dati_stude[4]['user'] = $user;
    $dati_stude[5]['course_desc'] = $course_desc;
    $dati_stude[5]['course'] = $course_title;
    $dati_stude[6]['start_desc'] = $start_desc;
    $dati_stude[6]['start'] = $start_date;
    $tObj = new Table();
    // $tObj->initTable('0','center','0','1','100%','black','white','black','white');
    $tObj->initTable('1', 'center', '0', '1', '', '', '', '', '', '1');
    // Syntax: $border,$align,$cellspacing,$cellpadding,$width,$col1, $bcol1,$col2, $bcol2
    $caption = translateFN("Studente selezionato: <B>") . $id_student . "</B> ";
    // $summary = translateFN("Elenco dei corsi monitorati");
    $summary = "";
    // $tObj->setTable($dati_stude,$caption,$summary);
    $tObj->setTable($dati_stude, $caption, $summary);
    $student_info = $tObj->getTable();
    return $student_info;
}
开发者ID:eguicciardi,项目名称:ada,代码行数:71,代码来源:tutor.inc.php

示例6: date

		$location = $_POST['txtLocation'];
		$category = $_POST['txtCategory'];
		$desc = $_POST['txtDescription'];
		$startDate = $_POST['txtStartDate'] . ' ' . date("h:i:s");
		$dueDate = $_POST['txtDueDate']  . ' ' . date("h:i:s");
		$status = $_POST['txtStatus'];

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET REMINDER
		$parts = new Table;
		$parts->setSQLType($fms_db->getSQLType());
		$parts->setInstance($fms_db->getInstance());
		$parts->setTable("remindermaster");
		$parts->setValues("title = '$title', description = '$desc', location = '$location', category = '$category'
						, startDate = '$startDate', dueDate = '$dueDate'
						, modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'");
		$parts->setParam("WHERE reminderID = '$id'");
		$parts->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_REMINDERS;
		$msg = "Reminder successfully updated.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
开发者ID:rogerapras,项目名称:fms,代码行数:31,代码来源:remindersController.php

示例7: time

 /**
  * @author giorgio 16/mag/2013
  * added $returnHTML parameter
  */
 function history_nodes_list_filtered_FN($period, $returnHTML = true)
 {
     $dh = $GLOBALS['dh'];
     $start = $period > 0 ? time() - $period * 86400 : 0;
     $result = $dh->get_last_visited_nodes_in_period($this->id_student, $this->id_course_instance, $start);
     //verificare il controllo degli errori
     if (AMA_DataHandler::isError($this->course_data)) {
         $errObj = new ADA_Error($this->course_data, translateFN("Errore nella lettura dei dati"));
     }
     if ($period != 0) {
         $caption = translateFN("Nodi visitati negli ultimi {$period} giorni");
     } else {
         $caption = translateFN("Tutti i nodi visitati");
     }
     $formatted_data = History::format_history_dataFN($result);
     if ($returnHTML) {
         $t = new Table();
         $t->initTable('0', 'center', '1', '1', '90%', '', '', '', '', '0', '1');
         $t->setTable($formatted_data, $caption, $caption);
         if (!empty($formatted_data)) {
             return $t->getTable();
         } else {
             return "Nessun nodo trovato";
         }
     } else {
         $formatted_data['caption'] = $caption;
     }
     return $formatted_data;
 }
开发者ID:eguicciardi,项目名称:ada,代码行数:33,代码来源:history_class.inc.php

示例8: foreach

            }
        }
        if (!empty($links)) {
            $linksul = CDOMElement::create('ul', 'class:ulactions');
            foreach ($links as $link) {
                $linksul->addChild($link);
            }
            $linksHtml = $linksul->getHtml();
        } else {
            $linksHtml = '';
        }
        $rulesData[$i] = array($labels[0] => $ruleAr['descrizione'], $labels[1] => $linksHtml);
    }
    $historyTable = new Table();
    $historyTable->initTable('0', 'center', '1', '1', '90%', '', '', '', '', '1', '0', '', 'default', 'completeRulesList');
    $historyTable->setTable($rulesData, translateFN('Elenco delle regole di completamento'), translateFN('Elenco delle regole di completamento'));
    $rulesIndexDIV->addChild($newButton);
    $rulesIndexDIV->addChild(new CText($historyTable->getTable()));
    // if there are more than 10 rows, repeat the add new button below the table
    if ($i > 10) {
        $bottomButton = clone $newButton;
        $bottomButton->setAttribute('class', 'newButton bottom');
        $rulesIndexDIV->addChild($bottomButton);
    }
} else {
    $rulesIndexDIV->addChild(new CText(translateFN('Errore nella lettura dell\'elenco delle regole')));
}
$data = $rulesIndexDIV->getHtml();
/**
 * include proper jquery ui css file depending on wheter there's one
 * in the template_family css path or the default one
开发者ID:eguicciardi,项目名称:ada,代码行数:31,代码来源:index.php

示例9: isset

 function history_ex_done_FN($id_student, $id_profile = "", $id_course_instance = "")
 {
     /**
     	Esercizi svolti
     	Crea array con nodo e punteggio, ordinato in ordine
     	decrescente di punteggio.
     */
     $dh = $GLOBALS['dh'];
     $error = $GLOBALS['error'];
     $http_root_dir = $GLOBALS['http_root_dir'];
     $debug = isset($GLOBALS['debug']) ? $GLOBALS['debug'] : null;
     if (empty($id_profile)) {
         $id_profile = AMA_TYPE_TUTOR;
     }
     $ids_nodi_padri = array();
     if (!empty($this->user_ex_historyAr)) {
         foreach ($this->user_ex_historyAr as $k => $e) {
             $exer_stats_ha[$k]['nome'] = $e[0];
             $exer_stats_ha[$k]['titolo'] = $e[1];
             $exer_stats_ha[$k]['id_nodo_parent'] = $e[2];
             $exer_stats_ha[$k]['id_exe'] = $e[3];
             $exer_stats_ha[$k]['id_nodo'] = $e[4];
             $exer_stats_ha[$k]['id_istanza'] = $e[5];
             $exer_stats_ha[$k]['data'] = $e[6];
             $exer_stats_ha[$k]['punteggio'] = $e[7];
             $exer_stats_ha[$k]['commento'] = $e[8];
             $exer_stats_ha[$k]['correzione'] = $e[9];
             $ids_nodi_padri[] = $exer_stats_ha[$k]['id_nodo_parent'];
         }
         if (!empty($ids_nodi_padri)) {
             $nodi_padri = $dh->get_nodes($ids_nodi_padri, array('nome', 'titolo'));
         }
         $label1 = translateFN('Esercizio');
         $label2 = translateFN('Data');
         $label3 = translateFN('Punteggio');
         $label4 = translateFN('Corretto');
         $data = array();
         foreach ($exer_stats_ha as $k => $e) {
             $id_exe = $e['id_exe'];
             $id_nodo = $e['id_nodo'];
             $nome = $e['nome'];
             $titolo = $e['titolo'];
             $nome_padre = $nodi_padri[$e['id_nodo_parent']]['nome'];
             $punteggio = $e['punteggio'];
             if ($e['commento'] != '-' or $e['correzione'] != '-') {
                 $corretto = translateFN('Si');
             } else {
                 $corretto = translateFN('-');
             }
             $date = ts2dFN($e['data']) . " " . ts2tmFN($e['data']);
             if ($id_profile == AMA_TYPE_TUTOR) {
                 $zoom_module = "{$http_root_dir}/tutor/tutor_exercise.php";
             } else {
                 $zoom_module = "{$http_root_dir}/browsing/exercise_history.php";
             }
             // vito, 18 mar 2009
             $link = CDOMElement::create('a');
             if (!empty($id_course_instance) && is_numeric($id_course_instance)) {
                 $link->setAttribute('href', $zoom_module . '?op=exe&id_exe=' . $id_exe . '&id_student=' . $id_student . '&id_nodo=' . $id_nodo . '&id_course_instance=' . $id_course_instance);
             } else {
                 $link->setAttribute('href', $zoom_module . '?op=exe&id_exe=' . $id_exe . '&id_student=' . $id_student . '&id_nodo=' . $id_nodo);
             }
             $link->addChild(new CText($nome_padre . ' > '));
             $link->addChild(new CText($nome));
             $html = $link->getHtml();
             $data[] = array($label1 => $html, $label2 => $date, $label3 => $punteggio, $label4 => $corretto);
         }
         $t = new Table();
         $t->initTable('0', 'center', '1', '1', '90%', '', '', '', '', '1', '0', '', 'default', 'exercise_table');
         $t->setTable($data, translateFN("Esercizi e punteggio"), translateFN("Esercizi e punteggio"));
         $res = $t->getTable();
     } else {
         $res = translateFN("Nessun esercizio.");
     }
     return $res;
 }
开发者ID:eguicciardi,项目名称:ada,代码行数:76,代码来源:user_class.inc.php

示例10: translateFN

            }
            // switch $c_type
            // verify the status of the chatroom
            $started = $chatroomObj->is_chatroom_startedFN($id_chatroom);
            $running = $chatroomObj->is_chatroom_activeFN($id_chatroom);
            //$not_expired = $chatroomObj->is_chatroom_not_expiredFN($id_chatroom);
            if ($running) {
                $chatroom_status = translateFN('in corso');
                $enter = "<a href=\"chat.php?id_room={$id_chatroom}&id_course={$id_course}\" target=\"_blank\"><img src=\"img/_chat.png\" alt=\"{$chat_label}\" border=\"0\"></a>";
            } elseif (!$started) {
                $chatroom_status = translateFN('non avviata');
                $enter = translateFN("- - -");
            } else {
                $chatroom_status = translateFN('terminata');
                $enter = translateFN("- - -");
            }
            // create the entries for the table
            $row = array(translateFN('titolo') => translateFN($chat_title), translateFN('stato') => $chatroom_status, translateFN('tipo') => $chat_type, translateFN('entra') => $enter);
            array_push($list_chatrooms, $row);
        }
        // initialize a new Table object that will visualize the list of the chatrooms
        $tObj = new Table();
        $tObj->initTable('1', 'center', '2', '2', '100%', '', '', '', '', '1', '', '');
        $caption = "<strong>" . translateFN("La lista delle tue chatroom") . "</strong>";
        $summary = translateFN("La lista delle tue chatroom");
        $tObj->setTable($list_chatrooms, $caption, $summary);
        $list_chatrooms_table = $tObj->getTable();
}
$banner = (include ROOT_DIR . '/include/banner.inc.php');
$content_dataAr = array('banner' => $banner, 'user_name' => $user_name, 'user_type' => $user_type, 'status' => $status, 'course_title' => $modulo, 'help' => $help, 'data' => $list_chatrooms_table, 'chat_users' => isset($online_users) ? $online_users : '', 'edit_profile' => $userObj->getEditProfilePage());
ARE::render($layout_dataAr, $content_dataAr);
开发者ID:eguicciardi,项目名称:ada,代码行数:31,代码来源:list_chatrooms.php

示例11: MessageAlert

	// -- START UPDATE LOCATION --
	if(isset($_POST['update']) && !empty($_POST['update']) && $_POST['update'] == 1){
		$id = $_GET['id'];
		$locName = $_POST['txtLocationName'];
		$status = $_POST['txtStatus'];

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET LOCATION
		$location = new Table;
		$location->setSQLType($fms_db->getSQLType());
		$location->setInstance($fms_db->getInstance());
		$location->setTable("locationmaster");
		$location->setValues("locationName = '$locName', modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'");
		$location->setParam("WHERE locationID = '$id'");
		$location->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_LOCATION;
		$msg = "Location successfully updated.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
		$alert->Alert();
	}
开发者ID:rogerapras,项目名称:fms,代码行数:30,代码来源:locationController.php

示例12: displayAllServicesData


//.........这里部分代码省略.........
     $label10 = translateFN("Info");
     $label11 = translateFN("Dettagli");
     $old_service_country = "";
     $old_service_title = "";
     foreach ($service_infoAr as $course_dataHa) {
         //var_dump($course_dataHa);
         $id_service = $course_dataHa[0];
         $service_title = translateFN($course_dataHa[1]);
         $service_info = CDOMElement::create('a', 'href:' . HTTP_ROOT_DIR . '/browsing/service_info.php?id_service=' . $id_service);
         $service_info->addChild(new CText($label10));
         $service_info_link = $service_info->getHtml();
         $service_level = $course_dataHa[2];
         $service_country = $course_dataHa[7] . "/" . $course_dataHa[6];
         $service_implementation_id = $course_dataHa[3];
         $provider_name = $course_dataHa[5];
         //var_dump($course_dataHa);
         //if (AMA_DataHandler::isError($id_course_instanceAr)){ // never subscribed
         if ($course_dataHa[8] == 0) {
             // never subscribed
             $norequest = "";
             // is level attainable for this provider?
             $max_level = $level_ha[$provider_pointer]['max_level'];
             if ($max_level == 0 or $service_level - $maxlevel == 1) {
                 $course_subscription = CDOMElement::create('a', 'href:' . HTTP_ROOT_DIR . '/browsing/subscribe.php?id_course=' . $service_implementation_id);
                 $course_subscription->addChild(new CText($label4));
                 $course_subscription_link = $course_subscription->getHtml();
             } else {
                 $course_subscription_link = $label7 . ":" . $service_level . "-" . $max_level;
                 // level too much higher
             }
         } else {
             // var_dump($id_course_instanceAr) ;
             $norequest = "&norequest=1";
             $id_course_instance = $course_dataHa[8];
             $course_subscription_link = $label9;
             /*.": $id_course_instance"*/
         }
         $course_registration = CDOMElement::create('a', 'href:' . HTTP_ROOT_DIR . '/browsing/registration.php?id_course=' . $service_implementation_id);
         $course_registration->addChild(new CText($label6));
         $course_registration_link = $course_registration->getHtml();
         $course_info = CDOMElement::create('a', 'href:' . HTTP_ROOT_DIR . '/browsing/service_info.php?id_course=' . $service_implementation_id . $norequest);
         $course_info->addChild(new CText($label11));
         $course_info_link = $course_info->getHtml();
         if ($orderBy == 'service') {
             if ($service_title != $old_service_title) {
                 $row[$label1] = "<strong>" . $service_title . "</strong>";
                 $old_service_title = $service_title;
                 //    $row[$label10] = $service_info_link;
             } else {
                 $row[$label1] = "";
                 //	$row[$label10] = "";
             }
             // $course_info->addChild(new CText($provider_name));
             $row[$label2] = $service_country;
             // $row[$label5] = $course_info_link;
             $row[$label5] = $provider_name;
             $row[$label11] = $course_info_link;
             $row[$label3] = level2stringFN($service_level);
             if ($callerModule == 'user') {
                 $row[$label4] = $course_subscription_link;
             } elseif ($callerModule == 'info') {
                 $row[$label4] = $course_registration_link;
             }
         } elseif ($orderBy == 'country') {
             if ($service_country != $old_service_country) {
                 $row[$label2] = "<strong>" . $service_country . "</strong>";
                 $old_service_country = $service_country;
             } else {
                 $row[$label2] = "";
             }
             // $course_info->addChild(new CText($service_title));
             $row[$label5] = $provider_name;
             $row[$label1] = $service_title;
             // $row[$label10] = $service_info_link;
             $row[$label11] = $course_info_link;
             $row[$label3] = level2stringFN($service_level);
             if ($callerModule == 'user') {
                 $row[$label4] = $course_subscription_link;
             } elseif ($callerModule == 'info') {
                 $row[$label4] = $course_registration_link;
             }
         }
         $to_sub_course_dataHa[] = $row;
     }
     if (count($to_sub_course_dataHa) > 0) {
         $tObj = new Table();
         $tObj->initTable('1', 'center', '0', '1', '100%', '', '', '', '', '1', '1');
         $caption = "<strong>" . translateFN("Servizi che puoi richiedere") . "</strong>";
         $summary = translateFN("Elenco dei servizi che puoi richiedere");
         $tObj->setTable($to_sub_course_dataHa, $caption, $summary);
         $all_services_data = $tObj->getTable();
         // $submit_button = "<p align='center'><input type=\"submit\" name=\"submit\" value=".translateFN("Richiedi")."></p>";
     } else {
         // $submit_button = "<p align='center'><input type=\"submit\" name=\"submit\" value=".translateFN("Registrati")."></p>";
         $all_services_data = translateFN("Non ci sono servizi che puoi richiedere");
     }
     $form .= $all_services_data;
     //.$submit_button;
     return $form;
 }
开发者ID:eguicciardi,项目名称:ada,代码行数:101,代码来源:GuestHtmlLib.inc.php

示例13: translateFN

 function format_as_tags($dataAr)
 {
     $dh = $GLOBALS['dh'];
     $debug = $GLOBALS['debug'];
     $reg_enabled = $GLOBALS['reg_enabled'];
     $id_profile = $GLOBALS['id_profile'];
     $sess_id_user = $SESSION['sess_id_user'];
     if (!is_array($dataAr) || !count($dataAr)) {
         $res = translateFN("Nessuna tag");
         // header("Location: $error?err_msg=$msg");
     } else {
         $formatted_dataHa = array();
         $k = -1;
         foreach ($dataAr as $bookmark) {
             $id_bk = $bookmark[0];
             $id_node = $bookmark[1];
             $date = $bookmark[2];
             $author_id = $bookmark[4];
             $node = $dh->get_node_info($id_node);
             $title = $node['name'];
             $icon = $node['icon'];
             $description = $bookmark[3];
             $authorHa = $dh->_get_user_info($author_id);
             $author_uname = $authorHa['username'];
             $k++;
             $formatted_dataHa[$k]['autore'] = "<a href=\"tags.php?op=list_by_user&id_auth={$author_id}\">{$author_uname}</a>";
             $formatted_dataHa[$k]['data'] = ts2dFN($date);
             $formatted_dataHa[$k]['tag'] = "<a href=\"tags.php?op=list_by_tag&id_bk={$id_bk}\"><img src=\"img/check.png\" border=0>&nbsp;{$description}</a>";
             if (is_array($dh->get_tutor($author_id))) {
                 // tag del tutor differenziate ??
                 $formatted_dataHa[$k]['id_nodo'] = "<a href=\"view.php?id_node={$id_node}\"><img src=\"img/{$icon}\" border=0> {$title}</a> (" . translateFN("Tutor") . ")";
                 //vito 13 gennaio 2009
                 //                if ($id_profile == AMA_TYPE_TUTOR){
                 //                  $formatted_dataHa[$k]['del'] =  "<a href=\"tags.php?op=delete&id_bk=$id_bk\">
                 //                  <img src=\"img/delete.png\" name=\"del_icon\" border=\"0\"
                 //                  alt=\"" . translateFN("Elimina") . "\"></a>";
                 //                  $formatted_dataHa[$k]['edit'] =  "<a href=\"tags.php?op=edit&id_bk=$id_bk\">
                 //                  <img src=\"img/edit.png\" name=\"edit_icon\" border=\"0\"
                 //                  alt=\"" . translateFN("Edit") . "\"></a>";
                 //                } else {
                 //                  $formatted_dataHa[$k]['del'] = "-";
                 //                  $formatted_dataHa[$k]['edit'] = "-";
                 //                }
             } else {
                 $formatted_dataHa[$k]['nodo'] = "<a href=\"view.php?id_node={$id_node}\"><img src=\"img/{$icon}\" border=0> {$title}</a>";
                 // vito 13 gennaio 2009
                 //                if ($reg_enabled AND $author_id == $sess_user_id){
                 //                  $formatted_dataHa[$k]['del'] =  "<a href=\"tags.php?op=delete&id_bk=$id_bk\">
                 //                  <img src=\"img/delete.png\" name=\"del_icon\" border=\"0\"
                 //                  alt=\"" . translateFN("Elimina") . "\"></a>";
                 //                  $formatted_dataHa[$k]['edit'] =  "<a href=\"tags.php?op=edit&id_bk=$id_bk\">
                 //                  <img src=\"img/edit.png\" name=\"edit_icon\" border=\"0\"
                 //                  alt=\"" . translateFN("Edit") . "\"></a>";
                 //                } else {
                 //                  $formatted_dataHa[$k]['del'] = "-";
                 //                  $formatted_dataHa[$k]['edit'] = "-";
                 //                }
             }
             $formatted_dataHa[$k]['zoom'] = "<a href=\"tags.php?op=zoom&id_bk={$id_bk}\">\n              <img src=\"img/zoom.png\" name=\"zoom_icon\" border=\"0\"\n              alt=\"" . translateFN("Zoom") . "\"></a>";
         }
         $t = new Table();
         $t->initTable('', 'default', '2', '1', '100%', '', '', '', '', 1, 0);
         $t->setTable($formatted_dataHa, translateFN("Tag"), '');
         $res = $t->getTable();
     }
     return $res;
 }
开发者ID:eguicciardi,项目名称:ada,代码行数:67,代码来源:bookmark_class.inc.php

示例14: MessageAlert

	if(isset($_POST['update']) && !empty($_POST['update']) && $_POST['update'] == 1){
		$id = $_GET['id'];
		$desc = $_POST['txtDescription'];
		$variant = $_POST['txtVariant'];
		$variantDesc = $_POST['txtVariantDesc'];
		$status = $_POST['txtStatus'];

		// SET FMS DB
		$fms_db = new DBConfig;
		$fms_db->setFleetDB();

		// SET MODEL
		$model = new Table;
		$model->setSQLType($fms_db->getSQLType());
		$model->setInstance($fms_db->getInstance());
		$model->setTable("modelmaster");
		$model->setValues("description = '$desc', variant = '$variant', variantDescription = '$variantDesc'
					, modifiedBy = '$sys_UserID', modifiedDate = '$today', status = '$status'");
		$model->setParam("WHERE modelID = '$id'");
		$model->doQuery("update");

		// CLOSING FMS DB
		$fms_db->DBClose();

		$url = BASE_URL . V_MODEL;
		$msg = "Model successfully updated.";

		$alert = new MessageAlert();
		$alert->setURL($url);
		$alert->setMessage($msg);
		$alert->Alert();
开发者ID:rogerapras,项目名称:fms,代码行数:31,代码来源:modelController.php

示例15: array

            if ($res_type == ADA_GROUP_TYPE || $res_type == ADA_LEAF_TYPE || $res_type == ADA_NOTE_TYPE || $res_type == ADA_PRIVATE_NOTE_TYPE) {
                $html_for_result = "<span class=\"{$class_name}\"><a href=\"view.php?id_node={$res_id_node}&querystring={$s_node_text}\">{$res_name}</a></span>";
            }
            /*else {
            $html_for_result = "<span class=\"$class_name\"><a href=\"exercise.php?id_node=$res_id_node\">$res_name</a></span>";
            }*/
            $temp_results = array(translateFN('Titolo') => $html_for_result);
            //$temp_results = array(translateFN("Titolo")=>$title,translateFN("Testo")=>$res_text);
            array_push($total_results, $temp_results);
        }
        $tObj = new Table();
        $tObj->initTable('0', 'center', '2', '1', '100%', 'black', 'white', 'black', 'white');
        $summary = translateFN("Elenco dei nodi che soddisfano la ricerca al ") . $ymdhms;
        // $caption = translateFN("Sono stati trovati")." $group_count ".translateFN("gruppi").", $node_count ".translateFN("nodi").", $exer_count ".translateFN("esercizi").", $note_count ".translateFN("note.");
        $caption = translateFN("Sono stati trovati") . " {$group_count} " . translateFN("gruppi") . ", {$node_count} " . translateFN("nodi");
        $tObj->setTable($total_results, $caption, $summary);
        $search_results = $tObj->getTable();
        // diretto:
        //header("Location: view.php?id_node=$res_id_node");
    } else {
        $search_results = translateFN("Non &egrave; stato trovato nessun nodo.");
    }
}
$menu = "<p>" . translateFN("Scrivi la o le parole che vuoi cercare, scegli quali oggetti cercare, e poi clicca su Cerca.");
$menu .= "<br>" . translateFN("ADA restituir&agrave; una lista con i nodi che contengono TUTTE le parole inserite.");
$menu .= "<br>" . translateFN("Le parole vengono trovate anche all'interno di altre parole, e senza distinzioni tra maiuscole e minuscole.") . "</p>";
// $menu .= "<br>".translateFN("Se vuoi cercare tra i media collegati (immagini, suoni, siti) usa la ")."<a href=search_media.php>".translateFN("Ricerca sui Media")."</a></p>";
// $menu .= "<br>".translateFN("Se non sai esattamente cosa cercare, prova a consultare il ")."<a href=lemming.php>".translateFN("Lessico")."</a></p>";
/* 5.
search form
开发者ID:eguicciardi,项目名称:ada,代码行数:30,代码来源:advanced_search.php


注:本文中的Table::setTable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。