function content_552d09a3eeb833_48019694($_smarty_tpl) { if (!is_callable('smarty_function_cleanurl')) { include '/home/diderson/webdev/PHP5/diderson.dev/anc-research/website/components/smarty/plugins-diderson/function.cleanurl.php'; } if ($_smarty_tpl->tpl_vars['pageObject']->value->id != '') { ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'view' && $_smarty_tpl->tpl_vars['pageObject']->value->enableEdit) { ?> <button type="submit" id="button-edit<?php echo $_smarty_tpl->tpl_vars['postfix']->value; ?> " name="button-edit" value="edit" class="btn btn-info">Edit</button> <?php } elseif ($_smarty_tpl->tpl_vars['pageObject']->value->enableEdit) { ?> <button type="submit" id="button-update<?php echo $_smarty_tpl->tpl_vars['postfix']->value; ?> " name="button-update" value="update" class="btn btn-info">Update</button> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->insertAsNewEnabled == '1') { ?> <button type="submit" id="button-insertasnew<?php echo $_smarty_tpl->tpl_vars['postfix']->value; ?> " name="button-insertasnew" value="insertasnew" class="btn btn-info">Insert As New</button> <?php } ?> <?php } ?> <?php } else { ?> <button type="submit" id="button-insert<?php echo $_smarty_tpl->tpl_vars['postfix']->value; ?> " name="button-insert" value="Insert" class="btn btn-info">Insert</button> <?php } ?> <a href="<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->listFileName), $_smarty_tpl); ?> " id="button-back" class="btn btn-warning">Back to List</a><?php }
function content_5537832bafd122_87546901($_smarty_tpl) { if (!is_callable('smarty_function_cleanurl')) { include '/home/diderson/webdev/PHP5/diderson.dev/anc-research/website/components/smarty/plugins-diderson/function.cleanurl.php'; } ?> <div class="action_icons"> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->enableView) { ?> <a href="<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->editViewFileName . "?id=" . $_smarty_tpl->tpl_vars['listData']->value['id'] . "&" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString()), $_smarty_tpl); ?> " title="View"><img src="design/ico-list.gif" class="ico" alt="View" /></a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->enableEdit) { ?> <a href="<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->editFileName . "?id=" . $_smarty_tpl->tpl_vars['listData']->value['id'] . "&" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString()), $_smarty_tpl); ?> " title="Edit"><img src="design/ico-edit.gif" class="ico" alt="Edit" /></a> <?php } if ($_smarty_tpl->tpl_vars['pageObject']->value->enableDelete) { ?> <a href="javascript:void(0);" id="del<?php echo $_smarty_tpl->tpl_vars['listData']->value['id']; ?> " title="Delete" class="delete-button" data-identity="<?php echo $_smarty_tpl->tpl_vars['listData']->value['id']; ?> " data-entityname="<?php echo $_smarty_tpl->tpl_vars['pageObject']->value->entityName; ?> " data-entityalias="<?php echo $_smarty_tpl->tpl_vars['pageObject']->value->entityAliasName; ?> "><img src="design/ico-delete.gif" class="ico" alt="Delete" /></a> <?php } ?> </div> <?php }
function content_552ea94d4c2e90_45677194($_smarty_tpl) { if (!is_callable('smarty_function_cleanurl')) { include 'D:/webdev/PHP5/diderson.dev/anc-research/website/components/smarty/plugins-diderson\\function.cleanurl.php'; } ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->id != '') { ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'view') { ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->viewHtmlPageTitle != '') { echo htmlspecialchars($_smarty_tpl->tpl_vars['pageObject']->value->viewHtmlPageTitle, ENT_QUOTES, 'UTF-8', true); } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->editHtmlPageTitle != '') { echo htmlspecialchars($_smarty_tpl->tpl_vars['pageObject']->value->editHtmlPageTitle, ENT_QUOTES, 'UTF-8', true); } ?> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->insertHtmlPageTitle != '') { echo htmlspecialchars($_smarty_tpl->tpl_vars['pageObject']->value->insertHtmlPageTitle, ENT_QUOTES, 'UTF-8', true); } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->id != '' && $_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'edit') { ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->id != '' && $_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'view') { ?> <?php } ?> </h1> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <div class="row"> <div class="col-lg-12"> <div id="notificationEdit"> <?php if (isset($_GET['pc']) && $_GET['pc'] == 'not') { ?> <div id="" class="alert alert-warning alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong>Oups! </strong>Please complete your details before you start your assessment. </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['processResult']->value > '0' || $_GET['action'] != '') { ?> <?php if ($_smarty_tpl->tpl_vars['formAction']->value == 'insert' || $_GET['action'] == 'insert') { ?> <div id="" class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong></strong>Insert successful. </div> <?php } elseif ($_smarty_tpl->tpl_vars['formAction']->value == 'insertasnew' || $_GET['action'] == 'insertasnew') { ?> <div id="" class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong></strong>Insert As New successful. </div> <?php } elseif ($_smarty_tpl->tpl_vars['formAction']->value == 'update' || $_GET['action'] == 'update') { ?> <div id="" class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong></strong>Update successful. </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['processResult']->value == '0') { ?> <?php if ($_smarty_tpl->tpl_vars['processResultMessage']->value != '') { ?> <div class="alert alert-danger alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong>Oh snap!</strong><?php echo $_smarty_tpl->tpl_vars['processResultMessage']->value; ?> . </div> <?php } else { ?> <div class="alert alert-danger alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong>Oh snap!</strong>Operation failed. </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['processResultMessage']->value != '') { ?> <div class="alert alert-danger alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <strong>Oh snap!</strong><?php echo $_smarty_tpl->tpl_vars['processResultMessage']->value; ?> </div> <?php } ?> </div> <div class="panel panel-default"> <div class="panel-heading"> <?php echo $_smarty_tpl->tpl_vars['pageObject']->value->editPanelHeading; ?> </div> <div class="panel-body"> <div class="row"> <div class="col-lg-10"> <form role="form" id="editform" action="<?php echo $_smarty_tpl->tpl_vars['formUrl']->value; ?> " method="post" enctype="multipart/form-data"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['contentTemplate']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <input type="hidden" id="editform-action" name="editform-action" value="" /> <input type="hidden" id="viewmode" name="viewmode" value="<?php if ($_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'view') { ?> readonly<?php } else { echo $_POST['viewmode']; } ?> " /> <input type="hidden" id="id_form" name="id_form" value="<?php echo $_smarty_tpl->tpl_vars['editData']->value[0]['id']; ?> " /> </form> </div> <!-- /.col-lg-6 (nested) --> </div> <!-- /.row (nested) --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> </div> <!-- /#page-wrapper --> <script type="text/javascript"> /* <![CDATA[ */ $(document).ready(function() { // alert('diderson baka'); $('#button-insert, #button-insert_a, #button-insert_b').click(function() { $('#editform-action').val( 'insert' ); }); $('#button-insertasnew, #button-insertasnew_a, #button-insertasnew_b').click(function() { $('#editform-action').val( 'insertasnew' ); }); $('#button-update, #button-update_a, #button-update_b').click(function() { $('#editform-action').val( 'update' ); }); $('#button-edit, #button-edit_a, #button-edit_b').click(function() { $('#editform').attr( 'action', '<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->editFileName . "?id=" . $_smarty_tpl->tpl_vars['editData']->value[0]['id'] . "&" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString(), 'htmlentities' => "false"), $_smarty_tpl); ?> ' ); }); $('#button-back, #button-back_a, #button-back_b').click(function() { <?php if ($_smarty_tpl->tpl_vars['pageObject']->value->templateType == 'view' && $_GET['action'] != 'update') { ?> $('#editform').attr( 'action', '<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->listFileName . "?" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString(), 'htmlentities' => "false"), $_smarty_tpl); ?> ' ); <?php } elseif ($_POST['viewmode'] == 'readonly') { ?> $('#editform').attr( 'action', '<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->editViewFileName . "?id=" . $_smarty_tpl->tpl_vars['editData']->value[0]['id'] . "&" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString(), 'htmlentities' => "false"), $_smarty_tpl); ?> ' ); <?php } else { ?> $('#editform').attr( 'action', '<?php echo smarty_function_cleanurl(array('url' => $_smarty_tpl->tpl_vars['pageObject']->value->listFileName . "?" . $_smarty_tpl->tpl_vars['pageObject']->value->getFormQueryString(), 'htmlentities' => "false"), $_smarty_tpl); ?> ' ); <?php } ?> }); }); /* ]]> */ </script><?php }