예제 #1
0
                                         <a href="in_action_add.php"><button class="btn btn-success">Add any i in action <i class="icon-plus icon-white"></i></button></a>
                                      </div>                                      
                                   </div>
                                    
                                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example2">
                                        <thead>
                                            <tr>
                                              <th>Picture</th>
                                              <th>Title</th>
                                              <th>Action</th>
                                          </tr>
                                        </thead>
                                        <tbody id="table_sort">
                                             <?
                                             foreach ($action->result as $key => $value) {
                                                $photo=$m_action->get_all_action_photo($value['id'])->result;
                                             	?>
                                             	<tr>
                                             		<td>
                                             			<img src="../media/action/<?php 
echo $photo[0]['filename'];
?>
" style="width:200px">
                                             		</td>
                                             		<td>
                                             		<input type="hidden" name="id[]" value="<?php 
echo $value['id'];
?>
">
                                             			<?php 
echo $value['title'] . "(" . $value['title_en'] . ")";
예제 #2
0
<?
require_once("./model/m_advisor.php");
$m_advisor = new M_advisor;
$advisor=$m_advisor->get_all_advisor(100000,0);

require_once("./model/m_action.php");
$m_action = new M_action;
$action=$m_action->get_all_action(100000,0)->result;
foreach ($action as $key => $value) {
    $photo_arr=$m_action->get_all_action_photo($action[$key]['id']);
    $action[$key]['photo']=$photo_arr->result;
}
require_once("./model/m_partner.php");
$m_partner = new M_partner;
$partner=$m_partner->get_all_partner(10000,0)->result;

require_once("./model/m_banner.php");
$m_banner = new M_banner;
$banner=$m_banner->get_all_banner(100000,0);
require_once("./model/m_encore.php");
$m_encore = new M_encore;
$encore=$m_encore->get_encore()->result;     
?>
<!-- CONTENT ************************** -->
<div id="fullpage">
    <!-- fullpage -->
    <!-- S1 ========================= -->
    <div class="section s1">
        <div class="container">
            <div class="row">
                <div class="twelve columns">
예제 #3
0
                            'action_id' => $ad_id, 
                            );
                        $m_action->insert_action_photo($pdata);
                        @unlink("../media/tmp/" . $filename);
                    }
        }
        
        ?>
        <script type="text/javascript">
        window.open("./in_action_list.php","_self");
        </script>
        <?
    }
}else if(isset($_GET['delete'])&&isset($_GET['id'])){
    $action=$m_action->get_action_by_id($_GET['id'])->result;
    $photo=$m_action->get_all_action_photo($action[0]['id'])->result;
    foreach ($photo as $key => $value) {
       @unlink("../media/action/" . $value['filename']);
       $m_action->delete_action_photo($value['id']);
    }
    
    $m_action->delete_action($action[0]['id']);
    ?>
        <script type="text/javascript">
        window.open("./in_action_list.php","_self");
        </script>
        <?
}
?>
<style type="text/css">
.row-fluid .no-margin-left {