PHP Classes

File: application/views/admincp/pluginList.php

Recommend this page to a friend!
  Classes of Minh Tien  >  Noblesse CMS  >  application/views/admincp/pluginList.php  >  Download  
File: application/views/admincp/pluginList.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change: Improve system, support bigdata
Date: 6 years ago
Size: 2,489 bytes
 

Contents

Class file image Download
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">List plugins</h3>
  </div>
  <div class="panel-body">
<div class="row">

        <div class="col-lg-12">
<!-- Form Action -->
        <div class="row">
        <form action="" method="post">



        </div>

        <!-- List -->
        <div class="row">
            <div class="col-lg-12">

                <table class="table">
                <thead>
                    <tr>
                    <td class="col-lg-1">#</td>
                    <td class="col-lg-3">Title</td>
                    <td class="col-lg-8">Descriptions</td>

                    </tr>
                </thead>
                <tbody>
                <?php

                $totalRow
=count($theList);

               
$li='';

               
$status='';

               
$activate='';

               
$control='';

               
$pluginSetting='';


                for(
$i=0;$i<$totalRow;$i++)
                {
                   
$status='<a href="'.System::getUrl().'admincp/plugins/uninstall/'.$theList[$i]['foldername'].'">Uninstall</a>';

                   
$activate='<a href="'.System::getUrl().'admincp/plugins/deactivate/'.$theList[$i]['foldername'].'">Deactivate</a>&nbsp;&nbsp;&nbsp;';

                   
$control='';

                   
$pluginSetting='';

                    if((int)
$theList[$i]['install'] == 0)
                    {
           
                       
$status='<a href="'.System::getUrl().'admincp/plugins/install/'.$theList[$i]['foldername'].'">Install</a>';
                    }
                    if((int)
$theList[$i]['setting'] == 1 && (int)$theList[$i]['install']==1)
                    {
           
                       
$pluginSetting='<a href="'.System::getUrl().'admincp/plugins/setting/'.$theList[$i]['foldername'].'">Setting</a>&nbsp;&nbsp;&nbsp;';
                    }

                    if((int)
$theList[$i]['status'] == 0 && (int)$theList[$i]['install']==1)
                    {
           
                       
$activate='<a href="'.System::getUrl().'admincp/plugins/activate/'.$theList[$i]['foldername'].'">Activate</a>&nbsp;&nbsp;&nbsp;';
                                           
                    }elseif((int)
$theList[$i]['status'] == 0 && (int)$theList[$i]['install']==0)
                    {
           
                       
$activate='';
                                           
                    }

                   
$li.='

                    <tr>
                    <td>
                    <input type="checkbox" name="id[]" value="'
.$theList[$i]['foldername'].'" />
                    </td>
                    <td>'
.stripslashes($theList[$i]['title']).'
                    <p style="margin-top:10px;">
                    '
.$pluginSetting.$activate.$status.'
                    </p>
                    </td>
                    <td>'
.stripslashes($theList[$i]['summary']).'

                    <p style="margin-top:10px;">
                    <span>Version '
.$theList[$i]['version'].'</span> | By <a href="'.$theList[$i]['url'].'">'.$theList[$i]['author'].'</a> &nbsp;|
                    </p>

                    </td>

                    </tr>
                    '
;

                }

                echo
$li;

               
?>


                </tbody>
                </table>
            </div>
        </div>
        </form>



        </div>






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

For more information send a message to info at phpclasses dot org.