Пример #1
0
/**
 * ### Returns the full path for a template
 *
 * @param string $tpl
 * @return string
 */
function templatePath($tpl)
{
    if (!strpos($tpl, ':')) {
        $path = viewdir() . $tpl . '.tpl.php';
    } else {
        $explode = explode(':', $tpl);
        $path = viewdir() . $explode[0] . '/' . $explode[1] . '.tpl.php';
    }
    return $path;
}
Пример #2
0
$allout = `{$webscr}`;
$out = explode("\n", $allout);
$webpath = $out[0];
$phppath = $webpath . "Documentation/PHP/";
$picpath = $phppath . "Pics/";
$dbscr = $confscr . " db";
$allout = `{$dbscr}`;
$out = explode("\n", $allout);
$Myqsl["Server"] = $out[0];
$Myqsl["User"] = $out[2];
$Myqsl["Pass"] = $out[3];
$Myqsl["DB"] = $out[1];
$Myqsl["Table"] = "dirtreetable";
$treeout = MakeTree($Page, $Name, $Myqsl);
if (isset($dir)) {
    $mainout = viewdir($Myqsl, $Page, $dir);
} else {
    if (isset($routine)) {
        $mainout = viewroutine($Myqsl, $routine);
    } else {
        if (isset($search)) {
            $mainout = viewsearch($Myqsl, $search);
        } else {
            $mainout = introtext();
        }
    }
}
?>


<div class="content">
Пример #3
0
echo '</table>';
echo '
<script type="text/javascript" src="' . NV_BASE_SITEURL . 'js/jquery/jquery.min.js"></script>
<link rel="StyleSheet" href="' . NV_BASE_SITEURL . 'themes/' . $global_config['admin_theme'] . '/css/admin.css" type="text/css" />	
<link type="text/css" href="' . NV_BASE_SITEURL . 'js/ui/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="' . NV_BASE_SITEURL . 'js/ui/jquery-ui-1.8.2.custom.js"></script>	
<script type="text/javascript" src="' . NV_BASE_SITEURL . 'js/contextmenu/jquery.contextmenu.r2.js"></script>
<script type="text/javascript" src="' . NV_BASE_SITEURL . 'js/jquery/jquery.scrollTo.js"></script>
<div id="imgpreview" style="overflow:auto" title="' . $lang_module['preview'] . '"></div>
<div id="createimg" style="text-align:center;display:none" title="' . $lang_module['upload_size'] . '">' . $lang_module['upload_width'] . ':<input name="width" style="width:60px" type="text"/>' . $lang_module['upload_height'] . ':<input type="text" style="width:60px" name="height" disabled=disabled/></div>
<div id="renameimg" style="display:none" title="' . $lang_module['rename'] . '">
' . $lang_module['rename_newname'] . '<input type="text" name="imagename"/></div>
<div id="movefolder" style="text-align:center;" title="' . $lang_module['movefolder'] . '">' . $lang_module['select_folder'] . '
<select name="selectfolder" id="selectfolder">';
//echo '<option value="' . $pathimg . '" ' . (($pathimg == $currentpath) ? ' selected' : '') . '>' . $pathimg . '</option>';
$listdir = viewdir(NV_UPLOADS_DIR);
//$listdir = viewdir ( $pathimg );
foreach ($listdir as $folder) {
    $sel = $folder == $pathimg ? ' selected' : '';
    echo '<option value="' . $folder . '" ' . $sel . '>' . $folder . '</option>';
}
echo '	</select>';
echo '</div>
<div id="preview" style="display:none" title="' . $lang_module['preview'] . '"></div>

<script type="text/javascript">
$(function(){
// for change height value of resize image width
$("input[name=width]").keyup(function(){
	var newwidth = $("input[name=width]").val();
	$("#image",parent.document).attr("width",newwidth);