Ejemplo n.º 1
0
 static function install($module)
 {
     self::checkInstalled();
     if (!preg_match('/cms\\.backend\\.(.+)/', $module, $matches)) {
         return false;
     }
     $parts = explode('.', $matches[1]);
     $parentModule = 'cms.backend';
     foreach ($parts as $part) {
         $m = $parentModule . '.' . $part;
         //if (!qq::$module[$m]) { qg::need($m) }
         if (!cms::PageByModule($m)) {
             $Parent = cms::PageByModule($parentModule)->Page;
             $Page = $Parent->createChild(array('module' => 'cms.layout.backend', 'visible' => 1, 'access' => 0, 'offline' => 0))->Cont(1)->setModule($m);
         }
         $parentModule = $m;
     }
     return cms::PageByModule($module)->Page;
 }
Ejemplo n.º 2
0
foreach ($res as $vs) {
    ?>
			<tbody>
				<tr>
					<td><?php 
    echo $vs['type'];
    ?>
					<td><?php 
    echo $vs['name'];
    ?>
					<td><?php 
    echo $vs['page_access'] ? 'yes' : 'no';
    ?>
					<td>
						<a href="<?php 
    echo Url(cms::PageByModule('cms.backend.users')->Page->url())->addParam('grp_id', $vs['id']);
    ?>
">
							<?php 
    echo $vs['num_usr'];
    ?>
						</a>
					<td align="right">
						<a href="<?php 
    echo Url()->addParam('id', $vs['id']);
    ?>
">
							<img src="<?php 
    echo sysURL;
    ?>
cms/pub/css/pix/pencil.png" border="0" alt="" title="Bearbeiten" style="display:inline; cursor:pointer;" />