Example #1
0
File: main.php Project: mrj0909/sf
    function category_listings()
    {
        //$data['category_html']=$this->category_listings();
        $parent_categories = $this->categories_model->get_parent_categories();
        $category_html = '';
        foreach ($parent_categories as $pa_cat) {
            $image_path = base_url() . '/assets/uploads/images/categories/' . $pa_cat['cat_img'] . '_m.' . $pa_cat['cat_ext'];
            $category_html .= '<div class="fashion_cata">
							<img src="' . $image_path . '" width=225 height=400/>
							<h4 style=" margin-left: 55px;">' . $pa_cat['cat_name'] . '</h4>';
            $child_categories = $this->categories_model->get_child_categories($pa_cat['cat_id']);
            if ($child_categories) {
                $category_html .= '<ul style=" background-color:#000">';
                foreach ($child_categories as $child_categories) {
                    $category_html .= '<li>
									<a href="#">' . $child_categories['cat_name'] . '</a>
								</li>';
                }
                $category_html .= '<li style="background:url(' . image_asset_url('arrow-red.jpg') . ') left no-repeat;">
									<a style="color:red" href="#">MORE</a>
								</li>
							</ul>';
            }
            $category_html .= '</div>';
        }
        return $category_html;
    }
Example #2
0
    public function create_product_html($products)
    {
        $product_html = "";
        if ($products) {
            foreach ($products as $products) {
                $image_path_original = other_asset_url($products['product_image'] . '_m.' . $products['product_ext'], '', 'uploads/images/products');
                $iarr = @getimagesize($image_path_original);
                if (!is_array($iarr)) {
                    $image_path_original = image_asset_url('no_image.gif');
                }
                $img_featue = 'header.jpg';
                if ($products['is_featured']) {
                    $img_featue = 'heart_red.jpg';
                }
                $sale_tag = '';
                if ($products['sale_type_id'] == '1') {
                    $sale_tag = '<span style="float:left;"> Before: ' . round($products['product_price']) . ' kr
								<br>
								<label style="color:red">Now: ' . round($products['sale_value']) . ' kr</label> </span>
								<div class="persentage_imgs">
									-' . round(100 - $products['sale_value'] / $products['product_price'] * 100) . '%
								</div>';
                } elseif ($products['sale_type_id'] == '2') {
                    $now_price = $products['product_price'] * ($products['sale_value'] / 100);
                    $sale_tag = '<span style="float:left;"> Before: ' . round($products['product_price']) . ' kr
								<br>
								<label style="color:red">Now: ' . round($products['product_price'] - $now_price) . ' kr</label> </span>
								<div class="persentage_imgs">
									-' . round($products['sale_value']) . '%
								</div><!--persentage_img-->';
                } else {
                    $sale_tag = '<span style="float:left;"> 
								<label style="color:red">Now:' . round($products['product_price']) . ' kr</label> </span>';
                    if ($products['sale_type_id'] == '3') {
                        $sale_tag .= '<br /><span style="float:left;"><label> Buy 1 get ' . $products['sale_value'] . ' free</label></span>';
                    }
                    if ($products['sale_type_id'] == '4') {
                        $deals = explode('_', $products['sale_value']);
                        $sale_tag .= '<span style="float:left;"><label >Buy ' . $deals[0] . ' and pay for ' . $deals[1] . '</label></span>';
                    }
                }
                $product_html .= '<div class="cata_pro">
									<a href="' . base_url() . 'product/product_detail/' . $products['id'] . '" class="product_detail"><img height="256" width="200" src="' . $image_path_original . '"/></a>
									<!-- <div class="heart">
										' . image_asset($img_featue) . '
									</div> -->
									<p>
										' . $products['product_name'] . '
									</p>
									<div class="clear"></div>									
									' . $sale_tag . '
								</div><!--cata_pro-->';
            }
        } else {
            $product_html .= '<div class="cata_pro"><p>Kommer snart! </p></div>';
        }
        return $product_html;
    }
 public function pagination()
 {
     echo "<div id='pager'><form>";
     echo "<img src='" . image_asset_url("first.png") . "' class='first'/>";
     echo "<img src='" . image_asset_url("prev.png") . "' class='prev'/>";
     echo "<input type='text' class='pagedisplay' size='7'/>";
     echo "<img src='" . image_asset_url("next.png") . "' class='next'/>";
     echo "<img src='" . image_asset_url("last.png") . "' class='last'/>";
     echo "<select class='pagesize'>";
     echo "\t<option value='20'>20</option>";
     echo "\t<option value='40'>40</option>";
     echo "\t<option value='50'>50</option>";
     echo "</select>";
     echo "</form></div>";
 }
echo "<tr><td><a href='" . site_url("/calc/addcomp0/" . $dt[0]->NPK_ID) . "'>Add Component Fee</a></td><td colspan=3></td></tr>";
echo "</tbody>";
echo "</table>";
echo "</td><td valign='middle'>";
echo "<img src='" . image_asset_url("right_arrow.png") . "' width=50 />";
echo "</td><td valign='top'>";
echo "<u><b>Calculation - 1</b></u>";
echo "<table>";
echo "<tbody>";
$i = 1;
if (count($proc_exist) > 0) {
    foreach ($proc_exist as $k => $v) {
        echo "<tr><td valign='top'>" . form_textarea(array("name" => "str_formula_exist[" . $v->CF_ID . "]", "cols" => 30, "rows" => 3), $v->STR_FORMULA) . "</td><td valign='top'>=</td>";
        echo "<td valign='top' align='right'>" . number_format($v->CF_NOM, 2) . "</td>";
        echo "<td valign='top'><a href='" . site_url("/calc/setasfee/" . $dt[0]->NPK_ID . "/1/" . $v->CF_ID) . "' class='setasfee'><img src='" . image_asset_url("fee.jpg") . "' width=18 /></a>";
        echo ($dt[0]->FEE_CF_ID == $v->CF_ID ? "<img src='" . image_asset_url("checky.jpg") . "' width=15 />" : "") . "</td></tr>";
        $i++;
    }
}
while ($i <= count($proc)) {
    echo "<tr><td>" . form_textarea(array("name" => "str_formula[]", "cols" => 30, "rows" => 3), "") . "</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>";
    $i++;
}
for ($i = 1; $i <= 2; $i++) {
    echo "<tr><td>" . form_textarea(array("name" => "str_formula[]", "cols" => 30, "rows" => 3), "") . "</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>";
}
echo "</tbody>";
echo "</table>";
echo "</td><td valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;";
echo "</td><td valign='top'>";
echo "<u>Tools</u>";
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>.: Login :.</title>
</head>
<body>
<?php 
echo form_open('home/setprofiledo');
?>
 <table width="580" height="430" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #1B305D; padding: 20px;">
    <tr><td align='right'><img src="<?php 
echo image_asset_url("logo_telkom.png");
?>
" /></td></tr>
	<tr>
      <td width="574"><table width="250px" border="0">

          <tr>
            <td width="72px"><font color="#000066" size="4"><i><b></b></i></font></td>
            <td><font color="#000066" size="4"><i><b>.: Set Profile :.</b></i></font></td>
          </tr>
		  <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>

          </tr>
          <tr>
            <td><font face="Verdana, Arial, Helvetica, sans-serif" color="#000066"><?php 
echo form_label('NIK', 'user_name');
?>
Example #6
0
										<td height="25" width="165" style="color: red;"><?php 
echo form_error($password['name']);
echo isset($errors[$password['name']]) ? $errors[$password['name']] : '';
?>
</td>
									</tr>
									<tr>
										<td height="20" width="165">&nbsp;</td>
										<td height="20" width="20">&nbsp;</td>
										<td height="20" width="165">&nbsp;</td>
									</tr>
									<tr>
										<td colspan="3" height="25" width="350">
										<p align="center">
											<input type="image" src="<?php 
echo image_asset_url('button-signin.jpg');
?>
" />
										</p></td>
									</tr>
								</tbody>
							</table>
							<?php 
echo form_close();
?>
						</div>
						<p align="center">
							<a style="font-size: 10px; text-decoration: underline;font-family: Tahoma" href="<?php 
echo base_url();
?>
auth/forgot_password"> Glömt ditt lösenord eller användarnamn?</a>
Example #7
0
function image_asset($asset_name, $module_name = '', $attributes = array())
{
    $attribute_str = _parse_asset_html($attributes);
    return '<img src="' . image_asset_url($asset_name, $module_name) . '"' . $attribute_str . ' />';
}
echo "<li><a href='" . site_url('/pgl/pgladd') . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter' id='tb_pgl'>
<thead><tr><th>PGL ID</th><th>Nama Pengelola</th><th>Alamat</th><th>No. Telp.</th><th align='center'>Marketing Fee</th><th>Count of Tenant</th><th>LIS</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    if ($r->ENABLE_FEE == 1) {
        $icon_enable_fee = "<img src='" . image_asset_url("checky.jpg") . "' />";
    } else {
        $icon_enable_fee = "<img src='" . image_asset_url("checkn.gif") . "' width=8 />";
    }
    echo "<tr><td>" . $r->PGL_ID . "</td><td>" . $r->PGL_NAME . "</td><td>" . $r->PGL_ADDR . "</td><td>" . $r->PGL_CONTACT_NO . "</td><td align='center'>" . $icon_enable_fee . "</td>";
    echo "<td align='right'><a href='" . site_url("/pgl/ten/" . $r->PGL_ID) . "'>" . number_format($r->JML_TEN) . "</a></td>";
    echo "<td align='right'>" . number_format($r->JML_ND) . "</td>";
    echo "<td nowrap><a href='" . site_url("/pgl/mou/" . $r->PGL_ID) . "'>PKS</a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/pgl/pgledit/" . $r->PGL_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/pgl/pgldel/" . $r->PGL_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='delpgl' title='" . $r->PGL_NAME . "' /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>

<?php 
$this->M_profiling->pagination();
Example #9
0
		
		<!--[if IE 7]>
		<?php 
echo plugin_css_asset("admin/font-awesome/css/font-awesome-ie7.min.css");
?>
		<![endif]-->
		<!-- end: MAIN CSS -->
		<!-- start: CSS REQUIRED FOR THIS PAGE ONLY -->
		<?php 
echo plugin_css_asset("admin/fullcalendar/fullcalendar/fullcalendar.css");
?>
		<!-- end: CSS REQUIRED FOR THIS PAGE ONLY -->
		
		
		<link rel="shortcut icon" href="<?php 
echo image_asset_url("favicon.ico");
?>
" />
	</head>
	<!-- end: HEAD -->
	<!-- start: BODY -->
	<body>
		<?php 
$this->load->view("admin/header");
?>
		
		<!-- start: MAIN CONTAINER -->
		<div class="main-container">
			<div class="navbar-content">
				<?php 
$this->load->view("admin/menu");
Example #10
0
 public function setmenus($prof_id)
 {
     $this->load->model('M_profiling');
     $d_menus = "";
     $d_menus .= "<ul class='sf-menu'>";
     $d_menus .= "<li><a href='" . site_url("") . "'><img src='" . image_asset_url("home_icon.png") . "' width='20' style='margin-top:-5px; margin-bottom:-5px;' /> Home</a>";
     $d_menus .= "</li>";
     foreach ($this->M_profiling->getMenuByProf($prof_id, 0) as $k => $v) {
         $d_menus .= "<li><a href='" . site_url($v->MENU_LINK) . "'>" . $v->MENU_NAME . "</a>";
         $d_menus .= $this->setsubmenu($this->M_profiling, $prof_id, $v->MENU_ID);
         $d_menus .= "</li>";
     }
     $d_menus .= "</ul>";
     $i = 0;
     $fixlen = 600;
     while (strlen($d_menus) > 0) {
         $this->session->set_userdata('d_menus_' . $i, substr($d_menus, 0, $fixlen));
         //echo 'd_menus_'.$i.":\n".substr($d_menus,0,$fixlen)."\n\n";
         //echo "<pre>"; echo $this->session->userdata('d_menus_'.$i); echo "</pre>\n\n";
         $d_menus = substr($d_menus, $fixlen, strlen($d_menus) - $fixlen);
         $i++;
     }
     //$this->session->set_userdata('d_menus', $d_menus);
     //$this->session->set_userdata('d_sub_menus', $this->d_sub_menus);
 }
Example #11
0
    public function index()
    {
        $cat_id = $_GET['cat_id'];
        $config['base_url'] = base_url() . 'category/?cat_id=' . $_GET['cat_id'];
        $config['total_rows'] = $this->product_model->total_product_by_category($_GET['cat_id']);
        $config['per_page'] = 20;
        $config['uri_segment'] = isset($_GET['per_page']) ? $_GET['per_page'] : 9;
        $this->pagination->initialize($config);
        $offset = $config['uri_segment'];
        $limit = $config['per_page'];
        $config['enable_query_strings'] = TRUE;
        $config['page_query_string'] = TRUE;
        $this->pagination->initialize($config);
        $products = $this->product_model->product_by_category($cat_id, $limit, $offset);
        $pro_html = '';
        if ($products) {
            foreach ($products as $products) {
                if ($products['product_image']) {
                    $image_path_original = other_asset_url($products['product_image'] . '_m.' . $products['product_ext'], '', 'uploads/images/products');
                }
                $iarr = @getimagesize($image_path_original);
                if (!is_array($iarr)) {
                    $image_path_original = image_asset_url('no_image.gif');
                }
                $img_featue = 'header.jpg';
                $heart_class = '<div class="heart" rel="' . $products['pro_id'] . '" id="wish_heart_' . $products['pro_id'] . '" style="display:none">
										' . image_asset($img_featue) . '
									</div>';
                $whislist_detail = $this->wishlist_model->get_wishlist_detail_product($products['pro_id']);
                if ($this->wishlist_model->get_wishlist_detail_product($products['pro_id'])) {
                    $img_featue = 'heart_red.jpg';
                    $heart_class = '<div class="heartred" rel="' . $products['pro_id'] . '" id="wish_heart_' . $products['pro_id'] . '">
										' . image_asset($img_featue) . '
									</div>';
                }
                $sale_tag = '';
                if ($products['sale_type_id'] == '1') {
                    $sale_tag = '<span style="float:left;"> Before: ' . round($products['product_price']) . ' kr
							<br>
							<label style="color:red">Now: ' . round($products['sale_value']) . ' kr</label> </span>
							<div class="persentage_imgs">
								-' . round(100 - $products['sale_value'] / $products['product_price'] * 100) . '%
							</div>';
                } elseif ($products['sale_type_id'] == '2') {
                    $now_price = $products['product_price'] * ($products['sale_value'] / 100);
                    $sale_tag = '<span style="float:left;"> Before: ' . round($products['product_price']) . ' kr
							<br>
							<label style="color:red">Now: ' . round($products['product_price'] - $now_price) . ' kr</label> </span>
							<div class="persentage_imgs">
										-' . round($products['sale_value']) . '%
							</div><!--persentage_img-->';
                } else {
                    $sale_tag = '<span style="float:left;"> 
							<label style="color:red">Now:' . round($products['product_price']) . ' kr</label> </span>';
                    if ($products['sale_type_id'] == '3') {
                        $sale_tag .= '<br /><span style="float:left;"><label> Buy 1 get ' . $products['sale_value'] . ' free</label></span>';
                    }
                    if ($products['sale_type_id'] == '4') {
                        $deals = explode('_', $products['sale_value']);
                        $sale_tag .= '<span style="float:left;"><label >Buy ' . $deals[0] . ' and pay for ' . $deals[1] . '</label></span>';
                    }
                }
                $pro_html .= '<div class="cata_pro product_detail" rel="' . $products['pro_id'] . '">
									<a id="product_' . $products['pro_id'] . '" href="' . base_url() . 'product/product_detail/' . $products['pro_id'] . '" ><img height="256" width="200" src="' . $image_path_original . '"/></a>
									
									' . $heart_class . '
									<p>
										' . trim_text(strip_tags($products['product_name']), 30) . '
									</p>
									<div class="clear"></div>									
									' . $sale_tag . '
								</div><!--cata_pro-->';
            }
        } else {
            $pro_html .= '<div class="cata_pro"><p>Sorry No Record Yet!</p></div>';
        }
        $cat_id = $this->input->get("cat_id");
        $data['category_name'] = get_categroy_name($cat_id);
        $data['category_detail'] = $this->categories_model->get_category_detail($cat_id);
        $data['product_category'] = get_product_oncategory($cat_id);
        //$data['product_category']  = '';
        $data['other_choice'] = other_choice_category();
        $data['related_categories'] = related_categories($cat_id);
        $data['sales_to_missed'] = sales_not_missed();
        $data['products'] = $pro_html;
        $data['pagination'] = $this->pagination->create_links();
        $data['query_params'] = $this->input->get();
        $data['total_records'] = $config['base_url'];
        $this->load->view('main/category.html', $data);
    }
Example #12
0
                                                                                                        <img alt="" src="<php echo image_asset_url ( "admin/avatar-1.jpg"); ?>">
                                                                                                </div>
                                                                                                <div class="thread-content">
                                                                                                        <span class="author">Peter Clark</span>
                                                                                                        <span class="preview">Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
                                                                                                        <span class="time">2 mins</span>
                                                                                                </div>
                                                                                        </div>
                                                                                </a>
                                                                        </li>
                                                                        <li>
                                                                                <a href="javascript:;">
                                                                                        <div class="clearfix">
                                                                                                <div class="thread-image">
                                                                                                        <img alt="" src="<?php 
echo image_asset_url("admin/avatar-3.jpg");
?>
">
                                                                                                </div>
                                                                                                <div class="thread-content">
                                                                                                        <span class="author">Steven Thompson</span>
                                                                                                        <span class="preview">Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
                                                                                                        <span class="time">8 hrs</span>
                                                                                                </div>
                                                                                        </div>
                                                                                </a>
                                                                        </li>
                                                                        <li>
                                                                                <a href="javascript:;">
                                                                                        <div class="clearfix">
                                                                                                <div class="thread-image">
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/pr/menuadd/' . $parent) . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
if ($parent > 0) {
    $grandparent = $this->M_profiling->getMenuAll("MENU_ID=" . $parent);
    echo "<li><a href='" . site_url('/pr/menuchild/' . $grandparent[0]->MENU_PARENT) . "'>UP</a></li>";
    echo "<li><a href='" . site_url('/pr/menu') . "'>/ROOT</a></li>";
}
echo "</ul></div>";
?>

<table class='tablesorter'>
<thead><tr><th>Menu Name</th><th>Link Address</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td><a href='" . site_url("/pr/menuchild/" . $r->MENU_ID) . "'>" . $r->MENU_NAME . "</a></td><td>" . $r->MENU_LINK . "</td>";
    echo "<td nowrap><a href='" . site_url("/pr/menuedit/" . $r->MENU_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/pr/menudel/" . $r->MENU_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $r->MENU_NAME . "' /></a></td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
Example #14
0
File: index.php Project: mrj0909/sf
        ?>
								<li>
									<div class="image_container">
                                   
                                       <img src="<?php 
        echo $retailer['image'];
        ?>
"/>
                                   
									</div>
                                    <div class="readmore_container" style="display:none">
									<a href="<?php 
        echo $retailer['link'];
        ?>
"> <img src="<?php 
        echo image_asset_url('arrow_red.jpg');
        ?>
" alt="" style="margin-right: 5px;">Se alla produkter </a>
                                    </div>
								</li>
								<?php 
    }
    ?>
							</ul>
						</div><!--companies_logo-->
						<div class="clear"></div>
					</div><!--showcase-->
	               <div class="clear"></div>
                    <?php 
}
?>
echo "<div class='sub_title'>" . $pgl[0]->PGL_NAME . "</div>";
/*echo "<div id='filterform' style='width:800px'>";
echo form_open(site_url('/pr/profile'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
?>

<table class='tablesorter' id='tb_pgl_ten'>
<thead><tr><th>TEN ID</th><th>Tenant</th><th>Address</th><th>Phone No.</th><th>LIS</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $r->TEN_ID . "</td><td>" . $r->TEN_NAME . "</td><td>" . $r->TEN_ADDR . "</td><td>" . $r->TEN_CONTACT_NO . "</td>";
    echo "<td align='right'><a href='" . site_url("/ten/nd/" . $r->TEN_ID) . "'>" . number_format($r->JML_ND) . "</a></td>";
    echo "<td nowrap><a href='" . site_url("/pgl/tendel/" . $pgl[0]->PGL_ID . "/" . $r->TEN_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $r->TEN_NAME . "' /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
echo form_open(site_url('/pr/profile'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/comp/tieradd') . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter' id='tb_tier'>
<thead><tr><th>Tier Name</th><th>Parameter</th><th>Description</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td><a href='" . site_url("/comp/tiercond/" . $r->TIER_ID) . "'>" . $r->TIER_NAME . "</a></td><td>" . $r->TIER_PARAMS . "</td><td>" . $r->TIER_DESC . "</td>";
    echo "<td nowrap><a href='" . site_url("/comp/tieredit/" . $r->TIER_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/comp/tierdel/" . $r->TIER_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='{" . $r->TIER_NAME . "}' /></a></td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
echo "<table id='filtertable'>";
echo "<tr><td>Pengelola</td><td>:</td><td>" . form_dropdown('f_pgl_id', $array_pgl, isset($_POST['f_pgl_id']) ? array($_POST['f_pgl_id']) : array()) . "</td></tr>";
echo "<tr><td>Period</td><td>:</td><td>" . form_dropdown("f_period_m", $array_period_m, isset($_POST['f_period_m']) ? array($_POST['f_period_m']) : array()) . " " . form_dropdown("f_period_y", $array_period_y, isset($_POST['f_period_y']) ? array($_POST['f_period_y']) : array()) . "</td></tr>";
echo "<tr><td colspan=3 align='right'>" . form_submit('filter', 'OK', '') . "</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";
?>

<table class='tablesorter' id='tb_npk_calc'>
<thead><tr><th>No.</th><th>Pengelola</th><th>Period</th><th>Method</th><th>Telkom's Signer</th><th>Telkom's Signer Position</th><th>Pengelola's Signer</th><th>Pengelola's Signer Position</th><th>Modified At</th><th>Status</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $no . "</td><td>" . $pgl[$r->PGL_ID] . "</td><td>" . $r->PERIOD . "</td><td>" . $this->M_npk->methods[$r->METHOD] . "</td>";
    echo "<td>" . $r->SIGN_NAME_1 . "</td><td>" . $r->SIGN_POS_1 . "</td>";
    echo "<td>" . $r->SIGN_NAME_2 . "</td><td>" . $r->SIGN_POS_2 . "</td><td>" . $r->UPDATE_DATE . "</td><td>" . $this->M_npk->status[$r->STATUS] . "</td>";
    echo "<td nowrap><a href='" . site_url("/calc/tostep0/" . $r->NPK_ID) . "'><img src='" . image_asset_url('calculator.png') . "' width=15 title='" . $pgl[$r->PGL_ID] . " - " . $r->PERIOD . "' /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/npk/lock/" . $r->NPK_ID) . "'><img src='" . image_asset_url('locked.png') . "' width=15 class='lock' title='" . $pgl[$r->PGL_ID] . " - " . $r->PERIOD . "' /></a>";
    //echo "&nbsp;&nbsp;<a href='".site_url("/npk/save/".$r->NPK_ID)."'><img src='".image_asset_url('save.png')."' width=15 class='npksave' title='".$r->NPK_ID."' /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
echo "<tr><td>Pengelola</td><td>:</td><td>" . form_dropdown('f_pgl_id', $array_pgl, isset($_POST['f_pgl_id']) ? array($_POST['f_pgl_id']) : array()) . "</td></tr>";
echo "<tr><td>Period</td><td>:</td><td>" . form_dropdown("f_period_m", $array_period_m, isset($_POST['f_period_m']) ? array($_POST['f_period_m']) : array()) . " " . form_dropdown("f_period_y", $array_period_y, isset($_POST['f_period_y']) ? array($_POST['f_period_y']) : array()) . "</td></tr>";
echo "<tr><td colspan=3 align='right'>" . form_submit('filter', 'OK', '') . "</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/npk/draftadd') . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter' id='tb_npk'>
<thead><tr><th>No.</th><th>Pengelola</th><th>Period</th><th>Method</th><th>Telkom's Signer</th><th>Telkom's Signer Position</th><th>Pengelola's Signer</th><th>Pengelola's Signer Position</th><th>Modified At</th><th>Status</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $no . "</td><td>" . $pgl[$r->PGL_ID] . "</td><td>" . $r->PERIOD . "</td><td>" . $this->M_npk->methods[$r->METHOD] . "</td>";
    echo "<td>" . $r->SIGN_NAME_1 . "</td><td>" . $r->SIGN_POS_1 . "</td>";
    echo "<td>" . $r->SIGN_NAME_2 . "</td><td>" . $r->SIGN_POS_2 . "</td><td>" . $r->UPDATE_DATE . "</td><td>" . $this->M_npk->status[$r->STATUS] . "</td>";
    echo "<td nowrap><a href='" . site_url("/npk/draftedit/" . $r->NPK_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/npk/draftdel/" . $r->NPK_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $pgl[$r->PGL_ID] . " - " . $r->PERIOD . "' /></a></td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
echo "<div class='sub_title'>Tier: " . $tier[0]->TIER_NAME . "</div>";
/*echo "<div id='filterform' style='width:800px'>";
echo form_open(site_url('/pr/profile'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/comp/tiercondadd/' . $tier[0]->TIER_ID) . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter'>
<thead><tr><th>Seq.</th><th>Conditional Logic</th><th>Result</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $r->SEQ_NO . "</td><td>" . $r->STR_COND . "</td><td>" . $r->NRESULT . "</td>";
    echo "<td nowrap><a href='" . site_url("/comp/tiercondedit/" . $r->TIER_ID . "/" . $r->SEQ_NO) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/comp/tierconddel/" . $r->TIER_ID . "/" . $r->SEQ_NO) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='{" . $tier[0]->TIER_NAME . "} - " . $r->SEQ_NO . "' /></a></td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
echo "<table id='filtertable'>";
echo "<tr><td>Nama Tenant</td><td>:</td><td>".form_input('f_ten_name', (isset($_POST['f_ten_name']))?$_POST['f_ten_name']:"", "size='30'" )."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/ten/tenadd') . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter' id='tb_ten'>
<thead><tr><th>TEN ID</th><th>Tenant</th><th>Address</th><th>Phone No.</th><th>LIS</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $r->TEN_ID . "</td><td>" . $r->TEN_NAME . "</td><td>" . $r->TEN_ADDR . "</td><td>" . $r->TEN_CONTACT_NO . "</td>";
    echo "<td align='right'><a href='" . site_url("/ten/nd/" . $r->TEN_ID) . "'>" . number_format($r->JML_ND) . "</a></td>";
    echo "<td nowrap><a href='" . site_url("/ten/tenedit/" . $r->TEN_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/ten/tendel/" . $r->TEN_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $r->TEN_NAME . "' /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
Example #21
0
                                                
                                               
												<font face="Tahoma" style="font-size: 12px"> 
                                                <span style="text-decoration: underline"> 
                                                  <a href="" class="topopup">JAG GODKÄNNER SALEFINDER ALLMÄNNA VILLKOR</a>
										        </span></font>
											</p></td>
										</tr>
										<tr>
											<td width="350" height="25" colspan="3">&nbsp;</td>
										</tr>
										<tr>
											<td colspan="3" height="25" width="350">
											<p align="center">
												<input type="image" src="<?php 
echo image_asset_url('button-register.jpg');
?>
" />
											</p></td>
										</tr>
										<tr>
											<td colspan="3" height="25" width="350">&nbsp;</td>
										</tr>
									</tbody>
								</table>
								<?php 
echo form_close();
?>
						</div>
					</div>
					<div class="clear"></div>
Example #22
0
    public function wishlist()
    {
        $this->load->library('pagination');
        $config['base_url'] = base_url() . 'category/whishlist_product';
        $config['total_rows'] = $this->wishlist_model->get_all_wishedproducts_count();
        $config['per_page'] = 24;
        $config['uri_segment'] = $this->uri->segment(3);
        $this->pagination->initialize($config);
        $offset = $config['uri_segment'];
        $limit = $config['per_page'];
        $this->pagination->initialize($config);
        $wishlist_products = $this->wishlist_model->get_all_wishedproducts($limit, $offset);
        $pro_html = '';
        if ($wishlist_products) {
            foreach ($wishlist_products as $wishlist_product) {
                $products = $this->product_model->get_product_detail($wishlist_product['product_id']);
                if ($products) {
                    if ($products['from_api'] == 0) {
                        $image_path_original = other_asset_url($products['product_image'] . '_m.' . $products['product_ext'], '', 'uploads/images/products');
                        $iarr = getimagesize($image_path_original);
                        if (!is_array($iarr)) {
                            $image_path_original = image_asset_url('no_image.gif');
                        }
                    } else {
                        //$image_path_original = $products['product_image'];
                        $image_path_original = str_replace('440', '220', $products['product_image']);
                    }
                    $img_featue = 'heart_red.jpg';
                    $heart_class = '<div class="remove_wish" rel="' . $wishlist_product['wish_id'] . '" id="wish_heart_' . $wishlist_product['wish_id'] . '" style="display:none">
									' . image_asset($img_featue) . '
								</div>';
                    $sale_tag = '';
                    if ($products['sale_type_id'] == '1') {
                        $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr
								<br>
								<label style="color:red">Nu: ' . makeCurrency($products['sale_value']) . ' kr</label> </span>
								<div class="persentage_imgs">
									-' . makeCurrency(100 - $products['sale_value'] / $products['product_price'] * 100) . '%
								</div>';
                    } elseif ($products['sale_type_id'] == '2') {
                        $now_price = $products['product_price'] * ($products['sale_value'] / 100);
                        $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr
								<br>
								<label style="color:red">Nu: ' . makeCurrency($products['product_price'] - $now_price) . ' kr</label> </span>
								<div class="persentage_imgs">
									-' . makeCurrency($products['sale_value']) . '%
								</div><!--persentage_img-->';
                    } elseif ($products['sale_type_id'] == '5') {
                        $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr
							<br>
							<label style="color:red">Nu: ' . makeCurrency($products['sale_price']) . ' kr</label> </span>
							<div class="persentage_imgs">
								-' . $products['api_reduction_percent'] . '%
							</div>';
                    }
                    $pro_html .= '<div class="cata_pro product_detail"  rel="' . $wishlist_product['wish_id'] . '">
										<a id="product_' . $products['pro_id'] . '" href="' . base_url() . 'product/product_detail/' . $products['pro_id'] . '" ><img src="' . $image_path_original . '"/></a>
										
										' . $heart_class . '
										<p>
											' . $products['product_name'] . '
										</p>
										<div class="clear"></div>									
										' . $sale_tag . '
									</div>';
                }
            }
        } else {
            $pro_html .= '
                            Det finns inga produkter i önskelistan.
                            <h2 style="margin-top:10px;">
                                Fördelar med SaleFinder önskelista
                            </h2>
                            <ul>
                               <li> 
                                Du kan spara produkter till nästa gång du loggar in
                               </li>
                               <li>
                                Du kan enkelt jämföra produkterna du har i önskelistan
                               </li>
                               <li>
                                Det blir lätt att ha alla dina favorit reavaror på ett ställe
                               </li>
                            </ul>
                ';
        }
        // $data['category_name']     = get_categroy_name(149);
        // $data['product_category']  = get_product_oncategory(149);
        // //$data['product_category']  = '';
        // $data['other_choice']      = other_choice_category();
        // $data['related_categories']= related_categories(149);
        // $data['sales_to_missed']   = sales_not_missed();
        $data['products'] = $pro_html;
        $data['pagination'] = $this->pagination->create_links();
        $this->template->load('responsive/default', 'responsive/wishlist', $data);
    }
Example #23
0
		</div>						<!-- wrapper ends -->
		
	</div>		<!-- #hld ends -->
	
	
	
	
	<script type="text/javascript">
		$(document).ready(function() {
			
		    $('#quiz_data').dataTable();
		    $('a[rel*=facebox]').facebox();
		    $("form select.styled").select_skin();
		    $("input[type=file]").filestyle({ 
			    image: "<?php 
echo image_asset_url('upload.gif', 'admin');
?>
",
			    imageheight : 30,
			    imagewidth : 80,
			    width : 250
			});
			// File upload
			if ($('#fileupload').length) {
				new AjaxUpload('fileupload', {
					action: '<?php 
echo base_url();
?>
admin/add_ban_image/',
					autoSubmit: true,
					name: 'userfile',
<div class='title'>Upload Data > Non POTS</div>
<div class='sub_title'></div>
<?php 
$array_pgl[""] = "-- Select Pengelola --";
foreach ($pgl as $k => $v) {
    $array_pgl[$k] = $v;
}
$array_ten[""] = "-- Select Tenant --";
$pu_action = array(1 => "Backup to current period", 2 => "Backup to <i>previous</i> period", 3 => "No Backup");
echo form_open_multipart("/ten/ndnpuploaddo");
echo "<table class='form'>";
echo "<tr><td>Pengelola</td><td>:</td>";
echo "<td>" . form_dropdown('pgl_id', $array_pgl, array(), "class='pgl_to_ten'") . "</td></tr>";
echo "<tr><td>Tenant</td><td>:</td>";
echo "<td><span class='ct_ten_of_pgl'>" . form_dropdown('ten_id', $array_ten, array(), "class='ten_of_pgl'") . "</span></td></tr>";
/*echo "<tr><td>Produk</td><td>:</td>";
echo "<td>".form_dropdown('cprod', $cprod, array() , "")."</td></tr>";
echo "<tr><td valign='top'>Pre-upload Action</td><td valign='top'>:</td>";
echo "<td valign='top'>";
foreach($pu_action as $k => $v) 
	echo form_radio("pu_action", $k, ($k==1) )."&nbsp;&nbsp;".$v."<br>";
echo "</td></tr>";*/
echo "<tr><td>File Type</td><td>:</td><td>Ms. Excel or file text (comma delimited)</td></tr>";
echo "<tr><td valign='top'>Format Field</td><td valign='top'>:</td><td>";
echo "<i>Customer Reff,Account Num,GL Account</i><br><br>";
echo "<img src='" . image_asset_url("format_upload.png") . "' width='780' /></td></tr>";
echo "<tr><td>File Name</td><td>:</td><td>" . form_upload("file_name", "", "size='50'") . "</td></tr>";
echo "<tr><td></td><td></td><td><br><input type='submit' name='submit' value='Submit' />&nbsp;&nbsp;<input type='submit' name='reset' value='Cancel' /></td></tr>";
echo "</table>";
echo form_close();
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>Pengelola</td><td>:</td><td>" . form_dropdown('f_pgl_id', $array_pgl, isset($_POST['f_pgl_id']) ? array($_POST['f_pgl_id']) : array()) . "</td></tr>";
echo "<tr><td>Period</td><td>:</td><td>" . form_dropdown("f_period_m", $array_period_m, isset($_POST['f_period_m']) ? array($_POST['f_period_m']) : array()) . " " . form_dropdown("f_period_y", $array_period_y, isset($_POST['f_period_y']) ? array($_POST['f_period_y']) : array()) . "</td></tr>";
echo "<tr><td colspan=3 align='right'>" . form_submit('filter', 'OK', '') . "</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";
?>

<table class='tablesorter' id='tb_doc_ba'>
<thead><tr><th>No.</th><th>Pengelola</th><th>Period</th><th>No. PKS</th><th>Date of PKS</th><th>Status</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $no . "</td><td>" . $pgl[$r->PGL_ID] . "</td><td>" . $r->PERIOD . "</td><td>" . $r->MOU_NO . "</td>";
    echo "<td>" . $r->MOU_DATE . "</td>";
    echo "<td>" . $this->M_npk->status[$r->STATUS] . "</td>";
    echo "<td nowrap><a href='" . site_url("/doc/badoc/" . $r->NPK_ID) . "'><img src='" . image_asset_url('msword.png') . "' width=18 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/doc/basetmou/" . $r->NPK_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();
<div style='padding: 5px; text-align: right; font-family: "Century Gothic", Arial;'>
<?php 
echo "<b style='color: #fff; text-decoration:none'>" . $this->session->userdata("d_user_name") . " </b> " . "&nbsp;&nbsp;&nbsp;&nbsp;<a href='" . site_url("/pr/myprof") . "'><img src='" . image_asset_url("setting.png") . "' title='my profile' width=16 /></a>" . "&nbsp;&nbsp;&nbsp;&nbsp;<a href='" . site_url("/home/logout") . "'><img src='" . image_asset_url("logout.png") . "' title='log out' /></a>";
//" | <a href='".site_url("/home/logout")."'>log out</a>";
?>
</div>
Example #27
0
'];
			    		var proimgsext = ['<?php 
    echo implode("','", $pro_images['image_ext']);
    ?>
'];	
						<?php 
} else {
    ?>
						var proimgs = new Array();
			    		var proimgsext = new Array();
			    		<?php 
}
?>
						$("#more_upload").uploadify({
							buttonImage   : '<?php 
echo image_asset_url("choose_file.jpg");
?>
',
							height        : 33,
							swf           : '<?php 
echo other_asset_url('uploadify.swf', '', 'js');
?>
',
							uploader      : '<?php 
echo base_url();
?>
user/add_pro_image',
							post_params	  : {"browser_cookie": "<?php 
echo trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->config->item('encryption_key'), $_COOKIE[$this->config->item('sess_cookie_name')], MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));
?>
"},
echo form_open(site_url('/pr/profile'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/pr/profileadd') . "'><img src='" . image_asset_url('add.gif') . "' width=24 /></a></li>";
echo "</ul></div>";
?>

<table class='tablesorter'>
<thead><tr><th>Profile Name</th><th>Description</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $r->PROF_NAME . "</td><td>" . $r->PROF_DESC . "</td>";
    echo "<td nowrap><a href='" . site_url("/pr/profileedit/" . $r->PROF_ID) . "'><img src='" . image_asset_url('edit.gif') . "' width=15 /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/pr/profiledel/" . $r->PROF_ID) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $r->PROF_NAME . "' /></a>";
    echo "&nbsp;&nbsp;<a href='" . site_url("/pr/menuacc/" . $r->PROF_ID) . "'>access</a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
echo form_open(site_url('/rpt/ndchurn'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>Pengelola</td><td>:</td>";
echo "<td>" . form_dropdown('f_pgl_id', $array_pgl, array(), "class='pgl_to_ten'") . "</td></tr>";
echo "<tr><td>Tenant</td><td>:</td>";
echo "<td><span class='ct_ten_of_pgl'>" . form_dropdown('ten_id', $array_ten, array(), "class='ten_of_pgl'") . "</span></td></tr>";
echo "<tr><td>Period</td><td>:</td><td>" . form_dropdown("f_period_m", $array_period_m, isset($_POST['f_period_m']) ? array($_POST['f_period_m']) : array(date("m"))) . " " . form_dropdown("f_period_y", $array_period_y, isset($_POST['f_period_y']) ? array($_POST['f_period_y']) : array(date("Y"))) . "</td></tr>";
echo "<tr><td colspan=3 align='right'>" . form_submit('filter', 'OK', '') . "</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";
if (count($dt) > 0) {
    echo "<div id='navigation'><ul>";
    echo "<li><a href='" . site_url('/rpt/ndchurnsheet/' . $_POST['f_pgl_id'] . '/' . $_POST['ten_id'] . '/' . $_POST['f_period_y'] . $_POST['f_period_m']) . "'><img src='" . image_asset_url('xls.gif') . "' width=15 /></a></li>";
    echo "</ul></div><br>";
}
echo "<i>Count = </i>" . count($dt);
?>

<table class='tablesorter' id='tb_c2bi'>
<thead><tr><th>No.</th><th>No. Fastel</th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $no . "</td><td>" . $r->ND . "</td>";
    echo "</tr>";
    $no++;
}
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>No. Anggota</td><td>:</td><td>".form_input('f_member_code', (isset($_POST['f_member_code']))?$_POST['f_member_code']:'', 'size=20')."</td></tr>";
echo "<tr><td colspan=3 align='right'>".form_submit('filter', 'OK','')."</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";*/
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/ten/ndsheet/' . $ten[0]->TEN_ID) . "'><img src='" . image_asset_url('xls.gif') . "' width=15 /></a></li>";
echo "</ul></div><br>";
echo "<i>Line In Service = </i>" . count($dt);
?>

<table class='tablesorter' id='tb_ten_nd'>
<thead><tr><th>ND</th><th></th></tr></thead>
<tbody>
<?php 
$no = 1;
foreach ($dt as $k => $r) {
    echo "<tr><td>" . $r->ND . "</td>";
    echo "<td nowrap><a href='" . site_url("/ten/nddel/" . $ten[0]->TEN_ID . "/" . $r->ND) . "'><img src='" . image_asset_url('del.gif') . "' width=15 class='del' title='" . $r->ND . "' /></a>";
    echo "</td>";
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>
<?php 
$this->M_profiling->pagination();