Exemplo n.º 1
0
                </thead>
                
                <tbody id="dynamic">
                            <?php if($sip_access->num_rows() > 0) {?>
                                <?php foreach($sip_access->result() as $row){ ?>
                                
                                    <tr class="main_text">
                                        <td align="center"><?php echo $row->username; ?></td>
                                        <td align="center" id="reset_pass"><a class="reset_pass" href="#" id="<?php echo $row->id; ?>">Reset Password</a></td>
                                        <td align="center"><?php echo $row->cid; ?></td>
                                        <td align="center"><?php echo $row->domain; ?></td>
                                        <!-- <td align="center"><?php echo $row->did_id; ?></td>         
                                        <td align="center"><?php echo $row->forwardnumber; ?></td>
                                        <td align="center"><?php echo $row->forwardip; ?></td> -->
<!--
                                        <td align="center"><?php echo sofia_profile_name($row->domain_sofia_id); ?></td>
-->                                        
                                        <td align="center">
                                            <a href="#" id="<?php echo $row->id;?>" class="delete_access"><img src="<?php echo base_url();?>assets/images/button_cancel.png" style="width:16px;border:none;cursor:pointer;" /></a>
                                        </td>
                                        
                                    </tr>
                                    <tr style="height:5px;"><td colspan="6" id="shadowDiv" style="height:5px;margin-top:0px;background-color:#fff"></td></tr>
                                <?php } ?>
                            <?php } else { ?>
                                
                                <tr class="main_text"><td align="center" colspan="6" style="color:red;">No Records Found</td></tr>
                            <?php } ?>
                    
                </tbody>
            </table>
Exemplo n.º 2
0
function gateways_drop_down($gateway_name = '', $sofia_id = '')
{
	$CI = & get_instance();
	$sql = "SELECT * FROM sofia_gateways GROUP BY gateway_name, sofia_id";
	$query = $CI->db->query($sql);
	$data = '';
	$data .= '<option value="">Select Gateway</option>';

	if($query->num_rows() > 0)
	{
		foreach($query->result() as $row)
		{
			if($gateway_name == $row->gateway_name && $sofia_id == $row->sofia_id)
			{
				$data .= '<option value="'.$row->gateway_name.'|'.$row->sofia_id.'" selected>'.$row->gateway_name.' -- '.sofia_profile_name($row->sofia_id).'</option>';
			}
			else
			{
				$data .= '<option value="'.$row->gateway_name.'|'.$row->sofia_id.'">'.$row->gateway_name.' -- '.sofia_profile_name($row->sofia_id).'</option>';
			}
		}
	}

	return $data;
}