array(),
'skin' => array(),
'face' => array(),
'breasts' => array(),
'body' => array(),
);
$concerns = array(
'f' => $order,
'm' => $order,
);
$treatments = $order;
//echo $q = "SELECT treatment_id, title, applicable_for, body_parts FROM treatments ORDER BY title ASC";
$_treatments = $obj->db->GetAll($q);
$q = "SELECT concern_id, title, applicable_for, body_parts
FROM concerns
WHERE is_enabled = 'y'
ORDER BY title ASC";
$_concerns = $obj->db->GetAll($q);
#### lakshmi
foreach($_concerns as $k=>$value)
{
$Cid[$k]=$_concerns[$k]['concern_id'];
$bpart[$k]=$_concerns[$k]['body_parts'];
$appfor[$k]=$_concerns[$k]['applicable_for'];
/*echo 'body->'.$bpart[$k];
echo '
';
echo 'appli->'.$appfor[$k];
echo '
';*/
### fetch concern rewrite url
$qc = mysql_query("SELECT rewriteurl from rewrite_url WHERE concernid =$Cid[$k]");
$res[$k]=@mysql_fetch_array($qc);
$rewrite_URL_List[$Cid[$k]]=$res[$k]['rewriteurl'];
### fetch bodyparts rewrite url
if($appfor[$k]=='f')
{
$qb= mysql_query("SELECT rewriteurl from rewrite_url WHERE bodypart ='$bpart[$k]' and appli ='$appfor[$k]'");
$resb[$k]=@mysql_fetch_array($qb);
$rewrite_URL_partList[$bpart[$k]]=$resb[$k]['rewriteurl'];
}
else
{
$qb= mysql_query("SELECT rewriteurl from rewrite_url WHERE bodypart ='$bpart[$k]' and appli ='$appfor[$k]'");
$resb[$k]=@mysql_fetch_array($qb);
$rewrite_URL_mfpartList[$bpart[$k]]=$resb[$k]['rewriteurl'];
}
}
#### end
/*print"
";
print_r($rewrite_URL_partList);
print"
";*/
//print_r($_concerns);
//print_r($_treatments);
//exit;
//Concerns
foreach ($_concerns as $v) {
//$body_parts = explode(',', $v['body_parts']);
$body_part = $v['body_parts'];
$do = array();
switch( $v['applicable_for'] ) {
case 'mf':
$do['m'] = TRUE;
$do['f'] = TRUE;
break;
case 'm':
$do['m'] = TRUE;
break;
case 'f':
$do['f'] = TRUE;
break;
}
if ( !empty($do) ) {
foreach ($do as $do_k => $do_v) {
if ( $do_v == TRUE ) {
$concerns[$do_k][$body_part][$v['concern_id']] = $v['title'];
}
}
}
}
// Treatment
foreach ($_treatments as $v) {
$body_parts = explode(',', $v['body_parts']);
$do = array();
foreach ($body_parts as $body_part) {
$treatments[$body_part][$v['treatment_id']] = $v['title'];
}
}
//print_r($concerns);
//print_r($treatments);
//exit;
?>
Epione offers unique mini face lift and laser skin treatment options
 |
|
 |
|
SITE MAP
General Information
|
Woman's Concerns
|
Men's Concerns
$concern) {
//echo 'b-->'. $body_part;
$rew_bodypartmen_URL=$rewrite_URL_mfpartList[$body_part];
if($rew_bodypartmen_URL!='')
{
echo '- ' . ucwords($body_part) . '
';
}
else
{
echo ' - ' . ucwords($body_part) . '
';
}
echo '';
foreach ($concern as $concern_id => $title) {
$rew_URL_men=$rewrite_URL_List[$concern_id];
if($rew_URL_men!='')
{
echo '- ' .$title. '
';
}
else
{
echo ' - ' .$title. '
';
}
}
echo ' ';
}
?>
|
Treatments
|
|
| |
|
|
|
|
|