/*** return the res ***/ return $res; } ?> <?php $counter = 0; print "<table width='100%' height='100%' border='1' align='left' cellpadding='1' cellspacing='1' style='margin-bottom:20px'>"; foreach ($managed_other_pdts_bill_details as $row) { $counter++; $rowid = "row" . $counter; print "<tr id='{$rowid}' class='td_rows' style=''>"; $bill_id = "bill_no" . $counter; $bill_no = $row->bill_no; $version = $row->bill_updated; $version1 = romanNumerals($version); $bill_version = $bill_no . " - " . $version1; print "<td width='10%' ><input type='text' class='plain_txt' id='{$bill_id}' value='{$bill_version}' /></td>"; $cust_id = "cust" . $counter; print "<td width='15%'><input type='text' class='plain_txt' readonly='readonly' id='{$cust_id}' value='" . $row->customer_name . "' /></td>"; $vehicle_id = "vehicle" . $counter; print "<td width='10%'><input type='text' class='plain_txt' readonly='readonly' id='{$vehicle_id}' value='" . $row->vehicle_no . "' /></td>"; $acctdate_id = "acctdate" . $counter; print "<td width='10%'><input type='text' class='plain_txt' readonly='readonly' id='{$acctdate_id}' value='" . $row->acct_date . "'/></td>"; $Shift_id = "shift" . $counter; print "<td width='5%'><input type='text' class='plain_txt' readonly='readonly' id='{$Shift_id}' value='" . $row->shift . "'/></td>"; $count_id = "count" . $counter; print "<td width='5%'><input type='text' class='plain_txt' readonly='readonly' id='{$count_id}' value='" . ucfirst($row->counter) . "'/></td>"; $totamt_id = "totamt" . $counter; print "<td width='9%'><input type='text' class='plain_txt' readonly='readonly' id='{$totamt_id}' value='" . $row->total_amt . "'/></td>"; $sales_id = "sales" . $counter;
$num = get_post_field('menu_order', $post->post_parent); if (count(get_post_ancestors($post->ID)) >= 2) { echo $num; echo ". "; } ?> <?php echo get_the_title($post->post_parent); ?> </a> </h3> <h2 class="page-number"> <?php $num = get_post_field('menu_order', $post->ID); if (count(get_post_ancestors($post->ID)) >= 2) { echo romanNumerals($num); } else { echo $num; } ?> . </h2> <?php the_title('<h1 class="entry-title">', '</h1>'); ?> </header><!-- .entry-header --> <div class="entry-content"> <ol class="subchapter-index" <?php if (count(get_post_ancestors($post->ID)) >= 2) { echo 'style="list-style-type: lower-roman;"';
public function htmlCopyright() { $year = date('Y'); ?> <p id="theme-copyright" class="r"> WP-iStalker Chrome theme designed by <a href="<?php echo wpiTheme::THEME_URL; ?> " rev="vote-for" class="url fn" title="Avice Devereux">Avice Devereux</a>.</p> <p id="copyright">© <span title="<?php echo $year; ?> "><?php echo romanNumerals($year); ?> </span>. <?php bloginfo('blogname'); ?> .</p> <?php }
function start_el(&$output, $page, $depth = 0, $args = array(), $current_page = 0) { if ($depth) { $indent = str_repeat("\t", $depth); } else { $indent = ''; } $css_class = array('page_item', 'page-item-' . $page->ID); if (isset($args['pages_with_children'][$page->ID])) { $css_class[] = 'page_item_has_children'; } if (!empty($current_page)) { $_current_page = get_post($current_page); if ($_current_page && in_array($page->ID, $_current_page->ancestors)) { $css_class[] = 'current_page_ancestor'; } if ($page->ID == $current_page) { $css_class[] = 'current_page_item'; } elseif ($_current_page && $page->ID == $_current_page->post_parent) { $css_class[] = 'current_page_parent'; } } elseif ($page->ID == get_option('page_for_posts')) { $css_class[] = 'current_page_parent'; } $css_classes = implode(' ', apply_filters('page_css_class', $css_class, $page, $depth, $args, $current_page)); if ('' === $page->post_title) { /* translators: %d: ID of a post */ $page->post_title = sprintf(__('#%d (no title)'), $page->ID); } $children = get_pages(array('child_of' => $page->ID)); if (count($children) !== 0) { if ($page->post_parent) { $menu_order = $page->menu_order . '. '; } else { $menu_order = null; } } else { if ($page->post_parent) { if (get_post($page->post_parent)->post_parent) { $menu_order = romanNumerals($page->menu_order) . '. '; } else { $menu_order = $page->menu_order . '. '; } } else { $menu_order = null; } } $output .= $indent . sprintf('<li class="%s"><a href="%s">%s%s%s%s</a>', $css_classes, get_permalink($page->ID), $args['link_before'], $menu_order, apply_filters('the_title', $page->post_title, $page->ID), $args['link_after']); }
copy(CO_PATH . '/templates/book/Skeleton/Resources/Templates/ebook/cover.html', $book_dir . '/Resources/Templates/kindle/cover.html'); copy(CO_PATH . '/templates/book/Skeleton/Resources/Templates/ebook/cover.twig', $book_dir . '/Resources/Templates/kindle/cover.twig'); copy(CO_PATH . '/templates/book/Skeleton/Resources/Templates/print/cover.twig', $book_dir . '/Resources/Templates/print/cover.twig'); copy(CO_PATH . '/templates/book/Skeleton/Resources/Templates/website/index.twig', $book_dir . '/Resources/Templates/website/index.twig'); copy(CO_PATH . '/templates/book/Skeleton/Resources/Templates/style.css', $book_dir . '/Resources/Templates/style.css'); $book_contents = ''; $q = "SELECT * FROM " . TBL_BOOKS_STRUCTURE . " WHERE book_id='{$book_id}' and bin='0' ORDER BY sort ASC"; $result = mysql_query($q, $database->connection); $i = 1; $introduction = 1; while ($row = mysql_fetch_array($result)) { if ($row['type'] == 'chapter') { $counter = $i; $headline1_counter = 0; if ($book_chapterlabels == 2) { $counter = romanNumerals($i); } if ($book_chapterlabels == 3) { $counter = num_to_letter($i); } $book_contents .= " - { element: chapter, number: {$counter}, content: chapter{$i}.md }\n"; $t = ""; if ($book_chapterlabels > 0) { $t = $counter . '. '; } $title = $row['content']; if ($title == '') { $title = $t . 'Kapitel'; } else { $title = $t . $row['content']; }