Example #1
0
if ($tgt_file) {
    list($xls, $errmsg) = excel_peruser_factory($charset, $tgt_file);
}
put_config($file_id, $_REQUEST, $group_id, $sheet_id, $xls, $conf);
$field_index = get_config($file_id, $conf);
$marker_window = new MarkerWindowWebUI($conf->get("block_width"), $conf->get("block_height"), $conf->get("block_offsetx"), $conf->get("block_offsety"), $conf->get("block_size"), $_REQUEST['scale']);
$sheet_marker = new SheetCellFitMarker($xls, $marker_window);
put_rails($file_id, $sheet_marker, $rails_env, $conf);
//
// HTMLファイル作成処理
//
if ($xls) {
    $html = put_header();
    $html .= put_css($xls);
    $html .= put_excel($xls, $marker_window, $sheet_marker, $field_index, $conf, $debug_mode);
    $html .= put_footer();
    file_put_contents(DST_DIR . $file_id . ".html", $html);
    $msg .= "put_excel\n";
}
// XXX: debugging purpose
/*
file_put_contents("/tmp/faxocr.log",
  "----------------------------------------\n" .
  date("Y/m/d H:i:s") . "\n(" .
  count($_REQUEST) . ")\n" .
  $msg . "\n\n",
  FILE_APPEND | LOCK_EX
);
*/
die;
function get_config($file_id, &$conf)
Example #2
0
                    <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
                </div>
                <div class="col-md-5">
                    <h2>Heading</h2>
                    <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
                    <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
                </div>
                
            </div>

            <hr>

            <footer>
                <p>&copy; Company 2014</p>
            </footer>
        </div> <!-- /container -->
        <div class="container-fluid">
            <div class="row">
                <div class="col-xs-12 col-md-8"><?php 
$this->load->view($module . "/" . $view_file);
?>
</div>
                <div class="col-xs-6 col-md-4">Samrat</div>
            </div>
        </div>
        <?php 
echo put_footer();
?>
    </body>
</html>