Ejemplo n.º 1
0
<div class="clearfix">
	<div id="line_items_header">
		<div class="clearfix">
			<div class="line_item">
				<?php 
echo si_line_item_header_columns('invoices');
?>
			</div>
		</div>
	</div>
	<div id="nestable" class="dd">
		<ol id="line_item_list" class="items_list">

			<?php 
if (!empty($line_items)) {
    ?>
				<?php 
    foreach ($line_items as $position => $data) {
        ?>
					<?php 
        if (is_int($position)) {
            // is not a child
            ?>
						<li class="item" data-id="<?php 
            echo (double) $position;
            ?>
">
							<?php 
            // get the children of this top level item
            $children = si_line_item_get_children($position, $line_items);
            ?>
Ejemplo n.º 2
0
<div class="clearfix">
	<div id="line_items_header">
		<div class="clearfix">
			<div class="line_item">
				<?php 
echo si_line_item_header_columns('estimates');
?>
			</div>
		</div>
	</div>
	<div id="nestable" class="dd">
		<ol id="line_item_list" class="items_list">

			<?php 
if (!empty($line_items)) {
    ?>
				<?php 
    foreach ($line_items as $position => $data) {
        ?>
					<?php 
        if (is_int($position)) {
            // is not a child
            ?>
						<li class="item" data-id="<?php 
            echo esc_attr($position);
            ?>
">
							<?php 
            // get the children of this top level item
            $children = si_line_item_get_children($position, $line_items);
            ?>