Ejemplo n.º 1
0
			 </td>
			 
		<td><a data-toggle="tooltip" title="Edit Category" href="?folder=category&file=edit&id=<?php 
        echo $res->c_id;
        ?>
" class="btn btn-primary"><i class="glyphicon glyphicon-edit"></i> </a> 
		
					<!--
<a  data-toggle="tooltip" title="Delete Category "href="delete.php?tablename=category&colname=c_id&id=<?php 
        echo $res->c_id;
        ?>
" class="btn btn-primary"><i class="glyphicon glyphicon-trash"></i> </a></td>

-->
	<?php 
        clickfordialog('category', 'c_id', $res->c_id);
        ?>

		</td>
			</tr>
			<?php 
    }
    ?>
 
		</tbody>
	</table>
			  </div>
			</div>
            </div>
          </div>
		</section>
Ejemplo n.º 2
0
function camp_rel_trains($type)
{
    global $db;
    $res = $db->get_results("SELECT * FROM camper_trains WHERE (ct_type='{$type}' && ct_b_id='{$_GET['bid']}') AND (rowstatus!='0')");
    if ($res) {
        ?>
	     	<table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
			<thead>
			<tr>
			<th>Train Title</th>
			<th>Train Type</th>
			<th>Train No</th>
			<th>Train date</th>
			<th>Train Status</th>
			<th>Options </th>
			</tr>
			</thead>
			<tbody>
			<?php 
        foreach ($res as $res) {
            ?>
			<tr>
			<td width=""><?php 
            echo $res->ct_title;
            ?>
</td>
			
			<td width=""><?php 
            echo $res->ct_type;
            ?>
</td>
			
			<td width=""><?php 
            echo $res->ct_campertrainno;
            ?>
</td>
			
			<td width=""><?php 
            echo $res->ct_date;
            ?>
</td>
				
				<td>
				<?php 
            if ($res->rowstatus == '1') {
                ?>
					<span class='label label-success'>Publish</span>
					<?php 
            } else {
                ?>
					<span class='label label-danger'>Unpublish</span>
					<?php 
            }
            ?>
				</td>
			<td width="30%">
		<!-- 	<a href='?folder=trains&file=create_ticket&ct_id=<?php 
            echo $res->ct_id;
            ?>
&bid=<?php 
            echo $_GET['bid'];
            ?>
' data-toggle="tooltip" title="Create New Tickets" class='btn btn-primary'><i class="fa fa-fw fa-ticket"></i></a> -->
		<a data-toggle="tooltip" title="Edit Tour" href="?folder=trains&file=add&id=<?php 
            echo $res->ct_id;
            ?>
&bid=<?php 
            echo $_GET['bid'];
            ?>
" class='btn btn-primary'>
		 <i class="glyphicon glyphicon-edit">
		 </i>
		 </a>
		 
<!--
	<a data-toggle="tooltip" title="Delete Tour" href="delete.php?tablename=tour&colname=tour_id&id=<?php 
            echo $res->tour_id;
            ?>
" class='btn btn-primary' 
	<i class="glyphicon glyphicon-trash"></i> </a>
-->
	
	<?php 
            clickfordialog('camper_trains', 'ct_id', $res->ct_id);
            ?>
	
	
	</td>

		
			</tr>
			<?php 
        }
        ?>
 
			</tbody>
		</table>

		     
		     
		   <?php 
    } else {
        ?>
		     <div class='alert alert-danger'>Train Not Available.</div>
		     <?php 
    }
}