function content_523973afc89242_36624595($_smarty_tpl)
    {
        if (!is_callable('smarty_function_validate')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.validate.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.date_format.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.truncate.php';
        }
        if (!is_callable('smarty_function_paginate_prev')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_prev.php';
        }
        if (!is_callable('smarty_function_paginate_middle')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_middle.php';
        }
        if (!is_callable('smarty_function_paginate_next')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_next.php';
        }
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

<div id="content">
    <div class="clear">
        <div class="content-corner clear"><span><span></span></span></div>
        <div class="content">
            <div class="clear">
                <!--right-->
                <!--left-->
                <div id="left">
                    <div class="left-indent">
                        <div class="wrapper-box module_menu">
                            <div class="boxTitle">
                                <h2>m-Health Administrator Menu</h2>
                            </div>
                            <div class="boxIndent">
                                <div class="clear">
                                    <ul class="menu">

                                        <li class="item1"><a href="dashboard.php"><span>Dashboard</span></a></li>
                                        <li class="item1"><a href="user.php"><span>User Profile</span></a></li>
                                        <li class="item1"><a href="logout.php"><span>Log Out</span></a></li>

                                    </ul>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="container">
                    <div class="clear">
                        <table class="blog" cellpadding="0" cellspacing="0">
                            <tr>
                                <td valign="top"><table width="100%"  cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td valign="top" width="100%" class="article_column">        <div class="article-title">
                                                    <table class="contentpaneopen">
                                                        <tr>
                                                            <td class="contentheading" width="100%">
                                                                <div class="article-title-text">
                                                                    <?php 
        echo $_smarty_tpl->tpl_vars['topic']->value;
        ?>

                                                                </div>

                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>

                                                <div class="article-text-indent">
                                                    <div class="clear">
                                                        
                                                                    </div>
                

<?php 
        echo $_smarty_tpl->tpl_vars['view']->value;
        ?>

</div>
<span class="error-message"><?php 
        echo $_smarty_tpl->tpl_vars['info']->value;
        ?>
</span>
<br/>
<span class="error-message"><?php 
        echo smarty_function_validate(array('id' => "v_end", 'message' => "Choose a end date"), $_smarty_tpl);
        ?>
</span>
<br/>
<div id="search_box" style="width: 400px;display:none">
<form id="form_name" action="" method="get">
        <table id="searchtable">
            
            <tr><td><strong>Tip Category</strong></td> <td>
                    <select name='category'>
                    <?php 
        $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['c']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['categorys']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
            $_smarty_tpl->tpl_vars['c']->_loop = true;
            ?>
                    <option value="<?php 
            echo $_smarty_tpl->tpl_vars['c']->value['id'];
            ?>
" ><?php 
            echo $_smarty_tpl->tpl_vars['c']->value['name'];
            ?>
</option>
                    <?php 
        }
        ?>
                </select>
                </td></tr>
  <tr><td> <strong>Start Date</strong></td> <td><input type="text" name="start" class="datepicker" id="start"/></td></tr>
  <tr> <td><strong>End Date</strong></td> <td><input type="text" name="end" class="datepicker" id="end"/></td></tr>
  <tr><td><input type="submit" value="Fetch Tips" name="submit"></td>
  <a href="#" id="close_box" style="text-align:right"><strong>Close Search Box</strong></a>
   </table>
   </form>
</div>
<div id="open_box"><strong><a href="#">Open Search Box</a></strong></div>
<div id="logs">
<table class="tips">
    <thead>
    <td>Date</td>
    <td>Category </td>
    <td>Tips </td>
    <td>Actions</td>

</thead>
<tbody>

<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['res'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['res']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['name'] = 'res';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['tips']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['res']['total'];
                $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['t']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['tips']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) {
                    $_smarty_tpl->tpl_vars['t']->_loop = true;
                    ?>
    <tr>
        <td><?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['t']->value['schedule_time']);
                    ?>
</td>
        <td ><?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['name'];
                    ?>
</td>
        <td width='200px'><?php 
                    echo stripslashes(smarty_modifier_truncate($_smarty_tpl->tpl_vars['t']->value['gist'], 80, "..."));
                    ?>
</td>
        <td width='100px'><a href="#mydiv<?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['tid'];
                    ?>
" rel="facebox">View</a> | <a href="manage.php?item=<?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['tid'];
                    ?>
">Delete</a></td>
    </tr>
    
<div id="mydiv<?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['tid'];
                    ?>
" style="display:none;text-align: justify">
    <h2  style="text-align: center">Tip For <?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['name'];
                    ?>
 Category On (<?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['t']->value['schedule_time']);
                    ?>
)<hr/></h2><?php 
                    echo stripslashes($_smarty_tpl->tpl_vars['t']->value['gist']);
                    ?>
<br/>
    <p><a href="edit.php?item=<?php 
                    echo $_smarty_tpl->tpl_vars['t']->value['tid'];
                    ?>
"><strong>Edit Tip</strong></a></p>



<tbody>
</table>
<?php 
                }
                ?>

Items <?php 
                echo $_smarty_tpl->tpl_vars['paginate']->value['first'];
                ?>
-<?php 
                echo $_smarty_tpl->tpl_vars['paginate']->value['last'];
                ?>
 out of <?php 
                echo $_smarty_tpl->tpl_vars['paginate']->value['total'];
                ?>
 displayed.
 
<?php 
                echo smarty_function_paginate_prev(array(), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_paginate_middle(array(), $_smarty_tpl);
                ?>
 <?php 
                echo smarty_function_paginate_next(array(), $_smarty_tpl);
                ?>

 
<?php 
            }
        }
        ?>

                <?php 
        /*  Call merged included template "footer.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '25744523973afb78d04-04724780');
        content_523974a3380ae8_17247407($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "footer.tpl" */
    }
    function content_5017c911cabd22_90893221($_smarty_tpl)
    {
        if (!is_callable('smarty_function_validate')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.validate.php';
        }
        if (!is_callable('smarty_modifier_date_format')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.date_format.php';
        }
        if (!is_callable('smarty_modifier_truncate')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\modifier.truncate.php';
        }
        if (!is_callable('smarty_function_paginate_first')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_first.php';
        }
        if (!is_callable('smarty_function_paginate_prev')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_prev.php';
        }
        if (!is_callable('smarty_function_paginate_middle')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_middle.php';
        }
        if (!is_callable('smarty_function_paginate_next')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_next.php';
        }
        if (!is_callable('smarty_function_paginate_last')) {
            include 'C:\\inetpub\\wwwroot\\base\\mhealth\\lib\\smarty\\libs\\plugins\\function.paginate_last.php';
        }
        echo $_smarty_tpl->getSubTemplate("header3.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>


                                                                  
  <div class="custom_blog" style="padding: 20px; ">
    <div ><h2><?php 
        echo $_smarty_tpl->tpl_vars['topic']->value;
        ?>
</h2></div>
                

<?php 
        echo $_smarty_tpl->tpl_vars['view']->value;
        ?>

</div>
<span class="error-message"><?php 
        echo $_smarty_tpl->tpl_vars['info']->value;
        ?>
</span>
<br/>
<span class="error-message"><?php 
        echo smarty_function_validate(array('id' => "v_end", 'message' => "Choose a end date"), $_smarty_tpl);
        ?>
</span>
<br/>
<div id="search_box" style="width: 400px;display:none">
<form id="form_name" action="" method="get">
        <table id="searchtable">
            
            <tr><td><strong>Tip Category</strong></td> <td>
                    <select name='category'>
                    <?php 
        $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['c']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['categorys']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value) {
            $_smarty_tpl->tpl_vars['c']->_loop = true;
            ?>
                    <option value="<?php 
            echo $_smarty_tpl->tpl_vars['c']->value['id'];
            ?>
" ><?php 
            echo $_smarty_tpl->tpl_vars['c']->value['name'];
            ?>
</option>
                    <?php 
        }
        ?>
                </select>
                </td></tr>
  <tr><td> <strong>Start Date</strong></td> <td><input type="text" name="start" class="datepicker" id="start"/></td></tr>
  <tr> <td><strong>End Date</strong></td> <td><input type="text" name="end" class="datepicker" id="end"/></td></tr>
  <tr><td><input type="submit" value="Fetch Tips" name="submit"></td>
  <a href="#" id="close_box" style="text-align:right"><strong>Close Search Box</strong></a>
   </table>
   </form>
</div>
<div id="open_box"><strong><a href="#">Open Search Box</a></strong></div>
<div id="logs">
<p>
<table class="tips">
    <thead>
    <td>Date</td>
    <td>Category </td>
    <td>Tips </td>
    <td>Actions</td>

</thead>
<tbody>
<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['tips']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                ?>
    <tr>
        <td><?php 
                echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['schedule_time']);
                ?>
</td>
        <td ><?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name'];
                ?>
</td>
        <td width='200px'><?php 
                echo stripslashes(smarty_modifier_truncate($_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['gist'], 80, "..."));
                ?>
</td>
        <td width='100px'><a href="#mydiv<?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tid'];
                ?>
" rel="facebox">View</a> | <a href="manage.php?item=<?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tid'];
                ?>
">Delete</a></td>
    </tr>
    
<div id="mydiv<?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tid'];
                ?>
" style="display:none;text-align: justify">
    <h2  style="text-align: center">Tip For <?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name'];
                ?>
 Category On (<?php 
                echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['schedule_time']);
                ?>
)<hr/></h2><?php 
                echo stripslashes($_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['gist']);
                ?>
<br/>
    <p><a href="edit.php?item=<?php 
                echo $_smarty_tpl->tpl_vars['tips']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['tid'];
                ?>
"><strong>Edit Tip</strong></a></p>


<?php 
            }
        }
        ?>
</tbody>
</table>

<span class="form" id="tnt_pagination"><?php 
        echo smarty_function_paginate_first(array('text' => "first"), $_smarty_tpl);
        ?>
  <?php 
        echo smarty_function_paginate_prev(array('text' => "previous"), $_smarty_tpl);
        ?>
  <?php 
        echo smarty_function_paginate_middle(array('format' => "page", 'page_limit' => "12"), $_smarty_tpl);
        ?>
  <?php 
        echo smarty_function_paginate_next(array('text' => "next"), $_smarty_tpl);
        ?>
  <?php 
        echo smarty_function_paginate_last(array('text' => "last"), $_smarty_tpl);
        ?>
</span> 
</div>
                <?php 
        /*  Call merged included template "footer.tpl" */
        $_tpl_stack[] = $_smarty_tpl;
        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '172595017c911b6ee93-97509025');
        content_532957f2a309f1_32133712($_smarty_tpl);
        $_smarty_tpl = array_pop($_tpl_stack);
        /*  End of included template "footer.tpl" */
    }