施工実例一覧

規格住宅

createOption('Cols','Default cols','text','2'); $this->createOption('tabledivName','DIV name used for the table (for css class)','text',''); $this->createOption('tableRowdivName','DIV name used for <tr> (for css class)','text',''); $this->createOption('tableCelldivName','DIV name used for <td> (for css class)','text',''); } function doSkinVar($skinType, $template, $amount = 10,$categoryid='') { global $manager, $blog, $CONF; $cols = $this->getOption(Cols); $tableDiv = $this->getOption(tableDivname); $this->readLog($template, $amount, $categoryid); } /* just adding params; What I really don't like about this implementation is the vast amount of code that has been reproduced overhere that really belomgs in BLOG.php, not here Why? Cause there is no way to get between ReadLog and ShowUsingQuery. The calls just keep on going, never returning an object. Adding params and run forward. All I wanted was to change showUsingQuery. */ function readLog($template, $amountEntries, $categoryid) { $this->readLogAmount($template,$amountEntries,"","",1,1,$categoryid); } function readLogAmount($template, $amountEntries, $extraQuery, $highlight, $comments, $dateheads,$categoryid) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $query = 'SELECT i.inumber as itemid, i.ititle as title, i.ibody as body, m.mname as author, m.mrealname as authorname, UNIX_TIMESTAMP(i.itime) as timestamp, i.imore as more, m.mnumber as authorid, c.cname as category, i.icat as catid, i.iclosed as closed' . ' FROM nucleus_item as i, nucleus_member as m, nucleus_category as c' . ' WHERE i.iblog='.$b->blogid . ' and i.iauthor=m.mnumber' . ' and i.icat=c.catid' . ' and i.idraft=0' // exclude drafts // don't show future items . ' and i.itime<=' . mysqldate($b->getCorrectTime()); if($categoryid){ $query .= ' and i.icat='.$categoryid; }elseif ($b->getSelectedCategory()){ $query .= ' and i.icat=' . $b->getSelectedCategory(); } $query .= $extraQuery . ' ORDER BY i.itime DESC'; if ($amountEntries > 0) $query .= ' LIMIT ' . $amountEntries; return $this->showUsingQuery($template, $query, $highlight, $comments, $dateheads); } function ChoiceBC($mbc = '', $bc = '') { $mc = explode('/', $mbc, 2); if($mc[0] == 'not') { $no = array('NOT(', ')'); $mbc = $mc[1]; } $que = ' and '.$no[0].$bc.' in ('.str_replace('/' ,',', $mbc).')'.$no[1]; return $que; } function showUsingQuery($template, $query, $highlight = '', $comments = 0, $dateheads = 1) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $lastVisit = cookieVar('lastVisit'); if ($lastVisit != 0) $lastVisit = $b->getCorrectTime($lastVisit); $template = TEMPLATE::read($template); // create parser object & action handler $actions = new ITEMACTIONS($b); $parser = new PARSER($actions->getDefinedActions(),$actions); $actions->setTemplate($template); $actions->setHighlight($highlight); $actions->setLastVisit($lastVisit); $actions->setParser($parser); $actions->setShowComments($comments); // execute query $items = sql_query($query); $rowCount = (float) 0; $currentDiv = $this->getOption(tabledivName); $cols = $this->getOption(Cols); /* How many columns to use */ echo ""; // loop over all items while ($item = mysql_fetch_object($items)) { // action handler needs to know the item we're handling $actions->setCurrentItem($item); if (($rowCount % $cols) == 0 ) { if ($rowCount >= $cols) { echo ''; } $currentDiv = $this->getOption(tableRowdivName); echo ""; } $rowCount = $rowCount + 1; $currentDiv = $this->getOption(tableCelldivName); echo "'; } $numrows = mysql_num_rows($items); // add another date footer if there was at least one item if (($numrows > 0) && $dateheads) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } echo '
"; // add date header if needed if ($dateheads) { $new_date = date('dFY',$item->timestamp); if ($new_date != $old_date) { // unless this is the first time, write date footer $timestamp = $item->timestamp; if ($old_date != 0) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } $manager->notify('PreDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); // note, to use templatvars in the dateheader, the %-characters need to be doubled in // order to be preserved by strftime $parser->parse(strftime($template['DATE_HEADER'],$timestamp)); $manager->notify('PostDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); } $old_date = $new_date; } // parse item $parser->parse($template['ITEM_HEADER']); $manager->notify('PreItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM']); $manager->notify('PostItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM_FOOTER']); // and close this tag echo '
'; mysql_free_result($items); // free memory return $numrows; } } ?>

オリジナル住宅

createOption('Cols','Default cols','text','2'); $this->createOption('tabledivName','DIV name used for the table (for css class)','text',''); $this->createOption('tableRowdivName','DIV name used for <tr> (for css class)','text',''); $this->createOption('tableCelldivName','DIV name used for <td> (for css class)','text',''); } function doSkinVar($skinType, $template, $amount = 10,$categoryid='') { global $manager, $blog, $CONF; $cols = $this->getOption(Cols); $tableDiv = $this->getOption(tableDivname); $this->readLog($template, $amount, $categoryid); } /* just adding params; What I really don't like about this implementation is the vast amount of code that has been reproduced overhere that really belomgs in BLOG.php, not here Why? Cause there is no way to get between ReadLog and ShowUsingQuery. The calls just keep on going, never returning an object. Adding params and run forward. All I wanted was to change showUsingQuery. */ function readLog($template, $amountEntries, $categoryid) { $this->readLogAmount($template,$amountEntries,"","",1,1,$categoryid); } function readLogAmount($template, $amountEntries, $extraQuery, $highlight, $comments, $dateheads,$categoryid) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $query = 'SELECT i.inumber as itemid, i.ititle as title, i.ibody as body, m.mname as author, m.mrealname as authorname, UNIX_TIMESTAMP(i.itime) as timestamp, i.imore as more, m.mnumber as authorid, c.cname as category, i.icat as catid, i.iclosed as closed' . ' FROM nucleus_item as i, nucleus_member as m, nucleus_category as c' . ' WHERE i.iblog='.$b->blogid . ' and i.iauthor=m.mnumber' . ' and i.icat=c.catid' . ' and i.idraft=0' // exclude drafts // don't show future items . ' and i.itime<=' . mysqldate($b->getCorrectTime()); if($categoryid){ $query .= ' and i.icat='.$categoryid; }elseif ($b->getSelectedCategory()){ $query .= ' and i.icat=' . $b->getSelectedCategory(); } $query .= $extraQuery . ' ORDER BY i.itime DESC'; if ($amountEntries > 0) $query .= ' LIMIT ' . $amountEntries; return $this->showUsingQuery($template, $query, $highlight, $comments, $dateheads); } function ChoiceBC($mbc = '', $bc = '') { $mc = explode('/', $mbc, 2); if($mc[0] == 'not') { $no = array('NOT(', ')'); $mbc = $mc[1]; } $que = ' and '.$no[0].$bc.' in ('.str_replace('/' ,',', $mbc).')'.$no[1]; return $que; } function showUsingQuery($template, $query, $highlight = '', $comments = 0, $dateheads = 1) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $lastVisit = cookieVar('lastVisit'); if ($lastVisit != 0) $lastVisit = $b->getCorrectTime($lastVisit); $template = TEMPLATE::read($template); // create parser object & action handler $actions = new ITEMACTIONS($b); $parser = new PARSER($actions->getDefinedActions(),$actions); $actions->setTemplate($template); $actions->setHighlight($highlight); $actions->setLastVisit($lastVisit); $actions->setParser($parser); $actions->setShowComments($comments); // execute query $items = sql_query($query); $rowCount = (float) 0; $currentDiv = $this->getOption(tabledivName); $cols = $this->getOption(Cols); /* How many columns to use */ echo ""; // loop over all items while ($item = mysql_fetch_object($items)) { // action handler needs to know the item we're handling $actions->setCurrentItem($item); if (($rowCount % $cols) == 0 ) { if ($rowCount >= $cols) { echo ''; } $currentDiv = $this->getOption(tableRowdivName); echo ""; } $rowCount = $rowCount + 1; $currentDiv = $this->getOption(tableCelldivName); echo "'; } $numrows = mysql_num_rows($items); // add another date footer if there was at least one item if (($numrows > 0) && $dateheads) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } echo '
"; // add date header if needed if ($dateheads) { $new_date = date('dFY',$item->timestamp); if ($new_date != $old_date) { // unless this is the first time, write date footer $timestamp = $item->timestamp; if ($old_date != 0) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } $manager->notify('PreDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); // note, to use templatvars in the dateheader, the %-characters need to be doubled in // order to be preserved by strftime $parser->parse(strftime($template['DATE_HEADER'],$timestamp)); $manager->notify('PostDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); } $old_date = $new_date; } // parse item $parser->parse($template['ITEM_HEADER']); $manager->notify('PreItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM']); $manager->notify('PostItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM_FOOTER']); // and close this tag echo '
'; mysql_free_result($items); // free memory return $numrows; } } ?>

リフォーム住宅

createOption('Cols','Default cols','text','2'); $this->createOption('tabledivName','DIV name used for the table (for css class)','text',''); $this->createOption('tableRowdivName','DIV name used for <tr> (for css class)','text',''); $this->createOption('tableCelldivName','DIV name used for <td> (for css class)','text',''); } function doSkinVar($skinType, $template, $amount = 10,$categoryid='') { global $manager, $blog, $CONF; $cols = $this->getOption(Cols); $tableDiv = $this->getOption(tableDivname); $this->readLog($template, $amount, $categoryid); } /* just adding params; What I really don't like about this implementation is the vast amount of code that has been reproduced overhere that really belomgs in BLOG.php, not here Why? Cause there is no way to get between ReadLog and ShowUsingQuery. The calls just keep on going, never returning an object. Adding params and run forward. All I wanted was to change showUsingQuery. */ function readLog($template, $amountEntries, $categoryid) { $this->readLogAmount($template,$amountEntries,"","",1,1,$categoryid); } function readLogAmount($template, $amountEntries, $extraQuery, $highlight, $comments, $dateheads,$categoryid) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $query = 'SELECT i.inumber as itemid, i.ititle as title, i.ibody as body, m.mname as author, m.mrealname as authorname, UNIX_TIMESTAMP(i.itime) as timestamp, i.imore as more, m.mnumber as authorid, c.cname as category, i.icat as catid, i.iclosed as closed' . ' FROM nucleus_item as i, nucleus_member as m, nucleus_category as c' . ' WHERE i.iblog='.$b->blogid . ' and i.iauthor=m.mnumber' . ' and i.icat=c.catid' . ' and i.idraft=0' // exclude drafts // don't show future items . ' and i.itime<=' . mysqldate($b->getCorrectTime()); if($categoryid){ $query .= ' and i.icat='.$categoryid; }elseif ($b->getSelectedCategory()){ $query .= ' and i.icat=' . $b->getSelectedCategory(); } $query .= $extraQuery . ' ORDER BY i.itime DESC'; if ($amountEntries > 0) $query .= ' LIMIT ' . $amountEntries; return $this->showUsingQuery($template, $query, $highlight, $comments, $dateheads); } function ChoiceBC($mbc = '', $bc = '') { $mc = explode('/', $mbc, 2); if($mc[0] == 'not') { $no = array('NOT(', ')'); $mbc = $mc[1]; } $que = ' and '.$no[0].$bc.' in ('.str_replace('/' ,',', $mbc).')'.$no[1]; return $que; } function showUsingQuery($template, $query, $highlight = '', $comments = 0, $dateheads = 1) { global $manager, $blog, $CONF, $HTTP_COOKIE_VARS; if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $lastVisit = cookieVar('lastVisit'); if ($lastVisit != 0) $lastVisit = $b->getCorrectTime($lastVisit); $template = TEMPLATE::read($template); // create parser object & action handler $actions = new ITEMACTIONS($b); $parser = new PARSER($actions->getDefinedActions(),$actions); $actions->setTemplate($template); $actions->setHighlight($highlight); $actions->setLastVisit($lastVisit); $actions->setParser($parser); $actions->setShowComments($comments); // execute query $items = sql_query($query); $rowCount = (float) 0; $currentDiv = $this->getOption(tabledivName); $cols = $this->getOption(Cols); /* How many columns to use */ echo ""; // loop over all items while ($item = mysql_fetch_object($items)) { // action handler needs to know the item we're handling $actions->setCurrentItem($item); if (($rowCount % $cols) == 0 ) { if ($rowCount >= $cols) { echo ''; } $currentDiv = $this->getOption(tableRowdivName); echo ""; } $rowCount = $rowCount + 1; $currentDiv = $this->getOption(tableCelldivName); echo "'; } $numrows = mysql_num_rows($items); // add another date footer if there was at least one item if (($numrows > 0) && $dateheads) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } echo '
"; // add date header if needed if ($dateheads) { $new_date = date('dFY',$item->timestamp); if ($new_date != $old_date) { // unless this is the first time, write date footer $timestamp = $item->timestamp; if ($old_date != 0) { $manager->notify('PreDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); $parser->parse($template['DATE_FOOTER']); $manager->notify('PostDateFoot',array('blog' => &$b, 'timestamp' => strtotime($old_date))); } $manager->notify('PreDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); // note, to use templatvars in the dateheader, the %-characters need to be doubled in // order to be preserved by strftime $parser->parse(strftime($template['DATE_HEADER'],$timestamp)); $manager->notify('PostDateHead',array('blog' => &$b, 'timestamp' => $timestamp)); } $old_date = $new_date; } // parse item $parser->parse($template['ITEM_HEADER']); $manager->notify('PreItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM']); $manager->notify('PostItem', array('blog' => &$b, 'item' => &$item)); $parser->parse($template['ITEM_FOOTER']); // and close this tag echo '
'; mysql_free_result($items); // free memory return $numrows; } } ?>