function pical_new_event_show_tpl($options)
 {
     global $xoopsConfig, $xoopsDB;
     $mydirname = empty($options[0]) ? basename(dirname(dirname(__FILE__))) : $options[0];
     $maxitem = empty($options[1]) ? 10 : intval($options[1]);
     $now_cid = empty($options[2]) ? 0 : intval($options[2]);
     // setting physical & virtual paths
     $mod_path = XOOPS_ROOT_PATH . "/modules/{$mydirname}";
     $mod_url = XOOPS_URL . "/modules/{$mydirname}";
     // defining class of piCal
     if (!class_exists('piCal_xoops')) {
         require_once "{$mod_path}/class/piCal.php";
         require_once "{$mod_path}/class/piCal_xoops.php";
     }
     // creating an instance of piCal
     $cal = new piCal_xoops(date('Y-n-j'), $xoopsConfig['language'], true);
     $cal->use_server_TZ = true;
     // cid による絞り込み
     $cal->now_cid = $now_cid;
     // setting properties of piCal
     $cal->conn = $xoopsDB->conn;
     include "{$mod_path}/include/read_configs.php";
     $cal->base_url = $mod_url;
     $cal->base_path = $mod_path;
     $cal->images_url = "{$mod_url}/images/{$skin_folder}";
     $cal->images_path = "{$mod_path}/images/{$skin_folder}";
     $block = $cal->get_blockarray_new_event("{$mod_url}/index.php", $maxitem);
     return $block;
 }