Exemplo n.º 1
0
$onlymine = $_REQUEST['onlymine'];
if ($onlymine == 'true') {
    $mine_selected = 'selected';
    $all_selected = '';
} else {
    $mine_selected = '';
    $all_selected = 'selected';
}
$module = 'Services';
$params = array('id' => $customerid, 'module' => $module, 'sessionid' => $sessionid, 'onlymine' => $onlymine);
$result = $client->call('get_service_list_values', $params, $Server_Path, $Server_Path);
echo '<aside class="right-side">';
echo '<section class="content-header" style="box-shadow:none;"><div class="row-pad">';
echo '<div class="col-sm-10"><b style="font-size:20px;">' . getTranslatedString("LBL_SERVICE") . '</b></div>';
$allow_all = $client->call('show_all', array('module' => $module), $Server_Path, $Server_Path);
if ($allow_all == 'true') {
    echo '<div class="col-sm-1 search-form"><div class="btn-group">
	    	<button type="button" class="btn btn-default dropdown-toggle service_owner_btn" data-toggle="dropdown">
	    		' . getTranslatedString('SHOW') . '<span class="caret"></span> 
	    	</button>
	    	<ul class="dropdown-menu service_owner">
	 		<li><a href="#">' . getTranslatedString('MINE') . '</a></li>
			<li><a herf="#">' . getTranslatedString('ALL') . '</a></li>
			</ul></div></div></section>';
}
echo '<section class="content"><div class="row">';
echo '<div class="col-xs-12">';
echo '<div class="box-body table-responsive no-padding"><table class="table table-hover">';
echo getblock_fieldlistview_product($result, $module);
echo '</table></td></tr></table></td></tr></table>';
echo '<!-- --End--  -->';
Exemplo n.º 2
0
$onlymine = $_REQUEST['onlymine'];
if ($onlymine == 'true') {
    $mine_selected = 'selected';
    $all_selected = '';
} else {
    $mine_selected = '';
    $all_selected = 'selected';
}
$block = 'Products';
$params = array('id' => $customerid, 'block' => $block, 'sessionid' => $sessionid, 'onlymine' => $onlymine);
$result = $client->call('get_product_list_values', $params, $Server_Path, $Server_Path);
echo '<tr>
	 			<td><span class="lvtHeaderText">' . getTranslatedString("LBL_PRODUCT_INFORMATION") . '</span</td>';
$allow_all = $client->call('show_all', array('module' => 'Products'), $Server_Path, $Server_Path);
if ($allow_all == 'true') {
    echo '<td align="right" style="padding-right:50px;"> <b>' . getTranslatedString('SHOW') . '</b>&nbsp; <select name="list_type" onchange="getList(this, \'Products\');">
	 			<option value="mine" ' . $mine_selected . '>' . getTranslatedString('MINE') . '</option>
				<option value="all"' . $all_selected . '>' . getTranslatedString('ALL') . '</option>
				</select></td></tr>';
}
echo '<tr><td colspan="2"><hr noshade="noshade" size="1" width="100%" align="left">
	      		<table width="95%"  border="0" cellspacing="0" cellpadding="5" align="center">';
echo getblock_fieldlistview_product($result, $block);
echo '</table></td></tr></table></td></tr></table>';
echo '<!-- --End--  -->';
?>