Beispiel #1
0
<div id="doc_pad">

<div style="float:right;margin-left:10px;"><iframe frameborder="0" width="250px" height="480px" src="http://www.goteo.org/widget/project/expansion-de-virtualpol" scrolling="no"></iframe></div>

' . $text . '
</div>

</div>';
        break;
    case 'presentacion':
        include_once 'source/inc-functions-accion.php';
        $result = mysql_query("SELECT title, text FROM docs WHERE ID = 577 LIMIT 1", $link);
        // doc_ID 577 = Test
        while ($r = mysql_fetch_array($result)) {
            presentacion($r['title'], $r['text']);
        }
        break;
    case 'desarrollo':
        $txt_title = 'Desarrollo de VirtualPol | Codigo fuente, Software libre, descargar';
        $txt_header = '<style type="text/css">.content { width:860px; margin: 0 auto; }</style>';
        $result = mysql_query("SELECT title, text FROM docs WHERE ID = 10 LIMIT 1", $link);
        // doc_ID 10 = Desarrollo
        while ($r = mysql_fetch_array($result)) {
            $title = $r['title'];
            $text = $r['text'];
        }
        $txt .= '
<div style="color:#555;">
<h1 style="color:#444;text-align:center;font-size:28px;">' . $title . '</h1>
Beispiel #2
0
<div style="margin:5px 0;">
<input type="text" name="titulo" value="' . $r['title'] . '" size="30" maxlength="50" style="font-size:22px;" /> &nbsp; 
<button onclick="$(\'#doc_opciones\').slideToggle(\'slow\');return false;" style="font-size:16px;color:#666;">Opciones</button> &nbsp; 
<input type="submit" value="Publicar" style="font-size:22px;" /> <a href="/doc/' . $r['url'] . '">Última publicación hace <span class="timer" value="' . strtotime($r['time_last']) . '"></span></a>.</div>

</form>

' . pad('print', $r['ID']);
            $txt_nav = array('/doc' => 'Documentos', '/doc/' . $r['url'] => $r['title'], 'Editar');
            $txt_tab['/doc/' . $r['url']] = 'Ver documento';
            $txt_tab['/doc/' . $r['url'] . '/editar'] = 'Editar';
        } elseif ($_GET['b'] == 'presentacion') {
            //doc/documento-de-test/presentacion
            if (nucleo_acceso($r['acceso_leer'], $r['acceso_cfg_leer'])) {
                presentacion($r['title'], $r['text'], 'http://' . strtolower(PAIS) . '.' . DOMAIN . '/doc/' . $r['url']);
            } else {
                $txt .= '<b style="color:red;">No tienes acceso de lectura.</b>';
            }
        } else {
            //doc/documento-de-test
            if (nucleo_acceso($r['acceso_escribir'], $r['acceso_cfg_escribir']) || nucleo_acceso($vp['acceso']['control_gobierno'])) {
                $boton_editar = boton('Editar', '/doc/' . $r['url'] . '/editar');
                $txt_tab['/doc/' . $r['url'] . '/editar'] = 'Editar';
            } else {
                $boton_editar = boton('Editar', null);
            }
            if ($_GET['b'] == 'backup') {
                $r['text'] = $r['text_backup'];
            }
            if (strpos($r['text'], '&lt;/div&gt;')) {