$php_list = array();
if($side_list){
foreach($side_list as $php_list){
if($php_list){
include($_SERVER["DOCUMENT_ROOT"]. "/side/". $php_list.".php");
}
}
}
?>
// 新規追加 サイド広告
$today = date("Ymd");
$xml = @simplexml_load_file("http://www.magclick.com/bengoshi/bengoshi_side.xml", 'SimpleXMLElement', LIBXML_NOCDATA);
$xml_list = $xml->text->item;
if($xml_list){
$text_html = "";
// echo $text_html;
}
$xml_img_list = $xml->banner->item;
unset($data);
if($xml_img_list){
$banner_html = "
"; // echo $banner_html; } if($text_html || $banner_html){ echo "
- ";
foreach($xml_list as $data){
$end_date = str_replace("/","",$data->end_date);
if($end_date >= $today){
$text_html .= "
- url."\">".$data->title." "; } } $text_html .= "
";
foreach($xml_img_list as $data){
$end_date = str_replace("/","",$data->end_date);
if($end_date >= $today){
$banner_html .= "
- "; $banner_html .= "
- url."\">".$data->title."
"; // echo $banner_html; } if($text_html || $banner_html){ echo "
[PR]";
echo $text_html;
echo $banner_html;
echo "
";
}
?>
include($_SERVER['DOCUMENT_ROOT']. "/include/top-heading.php");?>
// 新規追加 トップ広告
$today = date("Ymd");
$xml=array();
$xml_img_list = array();
$xml_list = array();
$banner_html = "";
$text_html = "";
$xml = @simplexml_load_file("http://www.magclick.com/bengoshi/bengoshi_center.xml", 'SimpleXMLElement', LIBXML_NOCDATA);
$xml_list = $xml->text->item;
if($xml_list){
$text_html = "
"; // echo $text_html; } $xml_img_list = $xml->banner->item; unset($data); if($xml_img_list){ $banner_html = "
"; // echo $banner_html; } if($text_html || $banner_html){ echo "
";
foreach($xml_list as $data){
$end_date = str_replace("/","",$data->end_date);
if($end_date >= $today){
$text_html .= "url."\">".$data->title."";
}
}
$text_html .= "
"; // echo $text_html; } $xml_img_list = $xml->banner->item; unset($data); if($xml_img_list){ $banner_html = "
";
foreach($xml_img_list as $data){
$end_date = str_replace("/","",$data->end_date);
if($end_date >= $today){
$banner_html .= "
- "; $banner_html .= "
- url."\">".$data->title."
"; // echo $banner_html; } if($text_html || $banner_html){ echo "
[PR]";
echo $text_html;
echo $banner_html;
echo "
";
}
?>
$php_list = array();
if($main_list){
foreach($main_list as $php_list){
if($php_list){
include($_SERVER["DOCUMENT_ROOT"]. "/main/". $php_list.".php");
}
}
}
?>