Ejemplo n.º 1
0
 function do_detail($info = array(), $info_lang = array())
 {
     global $ttH;
     $output = '';
     $data = array_merge($info, $info_lang);
     $data["link_action"] = $ttH->site->get_link('news', '', $info_lang['friendly_link']);
     $data["picture"] = $ttH->func->get_src_mod($info["picture"], 300, 300, 1, 0, array('fix_widtn' => 1));
     $ttH->temp_box->assign('data', array('link_share' => $ttH->data['link_lang'][$ttH->conf['lang_cur']]));
     $ttH->temp_box->parse("html_list_share");
     $data['content'] .= $ttH->temp_box->text("html_list_share");
     $data['content'] .= list_other(" and a.item_id!='" . $data['item_id'] . "'");
     $ttH->temp_act->assign('data', array('title' => urlencode($data['title']), 'link' => $ttH->data['link_lang'][$ttH->conf['lang_cur']]));
     $ttH->temp_act->parse("html_title_more");
     $data['more_title'] = $ttH->temp_act->text("html_title_more");
     $ttH->temp_box->assign('data', $data);
     $ttH->temp_box->parse("box_main");
     $output = $ttH->navigation . $ttH->temp_box->text("box_main");
     return $output;
 }
Ejemplo n.º 2
0
 function do_detail($info = array(), $info_lang = array())
 {
     global $ttH;
     $data = array_merge($info, $info_lang);
     $data["link_action"] = $ttH->site->get_link('product', '', $info_lang['friendly_link']);
     $data["picture"] = $ttH->func->get_src_mod('product/' . $info["picture"], 300, 300, 1, 0, array('fix_width' => 1));
     $data["brand_name"] = get_brand_name($info["brand_id"], 'link');
     $data["group_name"] = get_group_name($info["group_id"], 'link');
     $data["price"] = $ttH->func->get_price_format($info["price"]);
     $sql = "select option_id,title  \n\t\t\t\t\t\tfrom product_option \n\t\t\t\t\t\twhere is_show=1 \n\t\t\t\t\t\torder by show_order desc, date_create asc";
     //echo $sql;
     $result = $ttH->db->query($sql);
     $html_row = "";
     while ($row = $ttH->db->fetch_row($result)) {
         if (isset($data['arr_option'][$row['option_id']])) {
             $row['content'] = $data['arr_option'][$row['option_id']];
             $ttH->temp_act->assign('row', $row);
             $ttH->temp_act->parse("detail.info_row");
         }
     }
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("detail.btn_add_cart");
     $data['other'] = list_other(" and a.item_id!='" . $data['item_id'] . "'");
     $ttH->temp_act->assign('data', $data);
     $ttH->temp_act->parse("detail");
     $nd = array('title' => $data['title'], 'content' => $ttH->temp_act->text("detail"));
     return $ttH->html->temp_box("box_main", $nd);
 }
Ejemplo n.º 3
0
include "menu.php";
include "data.php";
?>

<div class="container-fluid">
<h4>Course Material</h4>
<p>Required Text:</p>
<?php 
list_other($textbook_req_list);
?>

<p>Optional Text:</p>
<?php 
list_other($textbook_opt_list);
?>

<br />
<h4>Interesting Videos/Applications</h4>
<?php 
list_other($app_list);
?>

<br />
<h4>Reading List</h4>
<?php 
list_reading($reading_list);
?>
</div>

<?php 
include "footer.php";
Ejemplo n.º 4
0
 function do_detail($info = array())
 {
     global $ttH;
     if ($info['picture']) {
         $info['pic_w'] = 210;
         $info['pic_h'] = 210;
         $info['picture'] = $ttH->func->get_src_mod($info["picture"], $info['pic_w'], $info['pic_h'], 1, 0, array('zoom_max' => 1));
         $ttH->temp_act->assign('data', $info);
         $ttH->temp_act->parse("item_detail.img");
     }
     $info['link_share'] = $ttH->data['link_lang'][$ttH->conf['lang_cur']];
     /*$string = file_get_contents('http://graph.facebook.com/'.$info['link_share'], FILE_USE_INCLUDE_PATH);
     		$facebook_info = json_decode($string);
     		if(!isset($facebook_info->comments)) {
     			$facebook_info->comments = 0;
     		}
     		$info['num_comment'] = $facebook_info->comments;*/
     $info['date_update'] = date('d/m/Y', $info['date_update']);
     $info['list_other'] = list_other(" and a.item_id!='" . $info['item_id'] . "'");
     $ttH->temp_act->assign('data', $info);
     $ttH->temp_act->parse("item_detail");
     //return $ttH->temp_act->text("item_detail");
     $data = array('content' => $ttH->temp_act->text("item_detail"), 'title' => $info['title']);
     $ttH->temp_box->assign('data', $data);
     $ttH->temp_box->parse("box_main");
     return $ttH->temp_box->text("box_main");
 }
Ejemplo n.º 5
0
<?php

$page = "resources";
include "header.php";
include "menu.php";
include "data.php";
?>

<div class="container-fluid">

<h4>Software</h4>
<?php 
list_other($software_list);
?>

<h4>Other</h4>
<?php 
list_other($other_list);
?>
</div>

<?php 
include "footer.php";