示例#1
0
    }
    //checking status
    //$check = checkStatus($rows['cafe_id']);
    if ($flag == 1) {
        $img_url = '../images/notok.JPG';
    } else {
        $img_url = '../images/ok.JPG';
    }
    while ($row = mysql_fetch_array($result_cafe)) {
        echo '<tr>';
        echo '<td>' . $row['cafe_name'] . '</td>';
        echo '<td>' . $row['first_name'] . ' ' . $row['last_name'] . '</td>';
        echo '<td>' . $row['office_phone'] . '</td>';
        echo '<td>' . $row['address'] . '</td>';
        echo '<td>' . $cafe_details->getCityName($row['city']) . '</td>';
        echo '<td>' . $cafe_details->getStateName($row['state']) . '</td>';
        echo '<td>' . $row['terminals'] . '</td>';
        echo '<td>' . $registered_screens . '</td>';
        echo '<td>';
        ?>
<img src="<?php 
        echo $img_url;
        ?>
" width="51" height="47" alt="Ok"></td>
          <?php 
        echo '<td>' . '<a href="view_details.php?cafe_id=' . $row['id'] . '">View</a>' . '</td>';
        echo '</tr>';
    }
}
?>
</table>
示例#2
0
   <?php 
while ($row = mysql_fetch_array($result)) {
    //var_dump($row);
    $result_rs = $cafe_details->getAllDetailsOfCafeByCafeUID($row['cafe_id']);
    $rm = mysql_fetch_array($result_rs);
    if ($rm or $rm['cafe_name']) {
        $cname = $rm['cafe_name'];
    } else {
        $cname = $row['cafe_id'];
    }
    //var_dump($rm);
    echo '<tr>';
    echo '<td>' . $cname . '</td>';
    echo '<td>' . $rm['first_name'] . '&nbsp;' . $rm['last_name'] . '</td>';
    echo '<td>' . $rm['office_phone'] . '</td>';
    echo '<td>' . $rm['address'] . ',' . $cafe_details->getCityName($rm['city']) . ',' . $cafe_details->getStateName($rm['state']) . '</td>';
    echo '</tr>';
}
?>
</table>
<p class="toptextpadding">&nbsp;</p>
<p class="toptextpadding">Corporate Profiles is a free, tableless, W3C-compliant web design layout by Template World. This template has been tested and proven compatible with all major bresult_rsser environments and operating systems. You are free to modify the design to suit your tastes in any way you like. We only ask you to not remove <span>"Design by Template World"</span> and the link http://www.templateworld.com from the footer of the template.</p>
<p class="toptextpadding">If you are interested in seeing more of our free web template designs feel free to visit our website, Template World. We intend to add at least 25 new free templates in the coming month.</p>
<p class="more"><a href="#">read more</a></p>
</div>

<div id="bodyMiddlePan"></div>
<?php 
include "../templates/footer.php";
?>
示例#3
0
      </div>
      <div class="form1_div2">
        <div>
          <input name="address" id="address" type="text" value="<?php 
echo $row['address'];
?>
">
        </div>
        <div><img src="../images/spacer.gif" alt="" width="1" height="10" /></div>
        <div>
          <div id="statediv"><select name="state" >
	<option value="<?php 
echo $row['state'];
?>
"><?php 
echo $cafe_details->getStateName($row['state']);
?>
</option>
        </select></div>
        </div>
        <div><img src="../images/spacer.gif" alt="" width="1" height="10" /></div>
        <div>
          <div id="citydiv"><select name="city">
	<option value="<?php 
echo $row['city'];
?>
"><?php 
echo $cafe_details->getCityName($row['city']);
?>
</option>
        </select></div>