mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-03-03 01:54:48 +00:00
- replace more <?= by <?php
This commit is contained in:
parent
39220c5a8d
commit
5a39bffd73
|
|
@ -576,12 +576,12 @@ class UI {
|
|||
<script language="JavaScript">
|
||||
var openDlg;
|
||||
function chooseCategory<?php print $formName ?>() {
|
||||
var current = document.<?= $formName ?>.categoryid<?= $formName ?>;
|
||||
var current = document.<?php echo $formName ?>.categoryid<?php echo $formName ?>;
|
||||
openDlg = open("out.CategoryChooser.php?form=<?php echo $formName?>&cats="+current.value, "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
|
||||
}
|
||||
function clearCategory<?php print $formName ?>() {
|
||||
document.<?= $formName ?>.categoryid<?= $formName ?>.value = '';
|
||||
document.<?= $formName ?>.categoryname<?= $formName ?>.value = '';
|
||||
document.<?php echo $formName ?>.categoryid<?php echo $formName ?>.value = '';
|
||||
document.<?php echo $formName ?>.categoryname<?php echo $formName ?>.value = '';
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
|
@ -784,16 +784,16 @@ archive="jl_core_z.jar"
|
|||
width="715"
|
||||
height="400"
|
||||
mayscript>
|
||||
<param name="uc_uploadUrl" value="<?= $uploadurl ?>"/>
|
||||
<param name="uc_uploadUrl" value="<?php echo $uploadurl ?>"/>
|
||||
<param name="ac_fireAppletInitialized" value="true"/>
|
||||
<param name="ac_fireUploaderSelectionChanged" value="true"/>
|
||||
<param name="ac_fireUploaderFileStatusChanged" value="true"/>
|
||||
<param name="ac_fireUploaderFileAdded" value="true"/>
|
||||
<param name="uc_partitionLength" value="<?= $settings->_partitionSize ?>"/>
|
||||
<param name="uc_partitionLength" value="<?php echo $settings->_partitionSize ?>"/>
|
||||
<?php
|
||||
if($maxfiles) {
|
||||
?>
|
||||
<param name="uc_maxFiles" value="<?= $maxfiles ?>"/>
|
||||
<param name="uc_maxFiles" value="<?php echo $maxfiles ?>"/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
@ -813,7 +813,7 @@ mayscript>
|
|||
<?php
|
||||
foreach($attributes as $name=>$value) {
|
||||
?>
|
||||
attr = attrSet.createStringAttribute( '<?= $name ?>', '<?= $value ?>' );
|
||||
attr = attrSet.createStringAttribute( '<?php echo $name ?>', '<?php echo $value ?>' );
|
||||
attr.setSendToServer(true);
|
||||
<?php
|
||||
}
|
||||
|
|
@ -870,7 +870,7 @@ mayscript>
|
|||
if(!$fields || (isset($fields['name']) && $fields['name'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('name') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('name') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('name'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
|
|
@ -887,7 +887,7 @@ mayscript>
|
|||
if(!$fields || (isset($fields['comment']) && $fields['comment'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('comment') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('comment') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('comment'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
|
|
@ -904,7 +904,7 @@ mayscript>
|
|||
if(!$fields || (isset($fields['reqversion']) && $fields['reqversion'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('version') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('version') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('reqversion'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
|
|
@ -921,7 +921,7 @@ mayscript>
|
|||
if(!$fields || (isset($fields['version_comment']) && $fields['version_comment'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('comment_for_current_version') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('comment_for_current_version') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('version_comment'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
|
|
@ -938,14 +938,14 @@ mayscript>
|
|||
if(!$fields || (isset($fields['keywords']) && $fields['keywords'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('keywords') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('keywords') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('keywords'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
value = '';
|
||||
if(edit) {
|
||||
value = "<textarea id='keywords" + index + "' name='keywords' cols='40' rows='2'>" + value + "</textarea>";
|
||||
value += "<br /><a href='javascript:chooseKeywords(\"form" + index + ".keywords" + index +"\");'><?= getMLText("use_default_keywords");?></a>";
|
||||
value += "<br /><a href='javascript:chooseKeywords(\"form" + index + ".keywords" + index +"\");'><?php echo getMLText("use_default_keywords");?></a>";
|
||||
}
|
||||
content += "<td class='dataText'>" + value + "</td>";
|
||||
content += "</tr>";
|
||||
|
|
@ -957,7 +957,7 @@ mayscript>
|
|||
if(!$fields || (isset($fields['categories']) && $fields['categories'])) {
|
||||
?>
|
||||
content += "<tr class='dataRow'>";
|
||||
content += "<td class='dataField'><?= getMLText('categories') ?></td>";
|
||||
content += "<td class='dataField'><?php echo getMLText('categories') ?></td>";
|
||||
if(attr = attrSet.getAttributeByName('categoryids'))
|
||||
value = attr.getStringValue();
|
||||
else
|
||||
|
|
@ -969,7 +969,7 @@ mayscript>
|
|||
if(edit) {
|
||||
value = "<input type='hidden' id='categoryidform" + index + "' name='categoryids' value='" + value + "' />";
|
||||
value += "<input disabled id='categorynameform" + index + "' name='categorynames' value='" + value2 + "' />";
|
||||
value += "<br /><a href='javascript:chooseCategory(\"form" + index + "\", \"\");'><?= getMLText("use_default_categories");?></a>";
|
||||
value += "<br /><a href='javascript:chooseCategory(\"form" + index + "\", \"\");'><?php echo getMLText("use_default_categories");?></a>";
|
||||
} else {
|
||||
value = value2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ UI::contentContainerStart();
|
|||
<?php
|
||||
} else {
|
||||
?>
|
||||
<p><?= getMLText('category_in_use') ?></p>
|
||||
<p><?php echo getMLText('category_in_use') ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ UI::contentHeading(getMLText("edit_document_props"));
|
|||
UI::contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditDocument.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<input type="hidden" name="documentid" value="<?= $documentid ?>">
|
||||
<input type="hidden" name="documentid" value="<?php echo $documentid ?>">
|
||||
<table cellpadding="3">
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("name");?>:</td>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ UI::htmlStartPage(getMLText("use_default_keywords"));
|
|||
|
||||
|
||||
<script language="JavaScript">
|
||||
var targetObj = opener.document.<?= $target ?>;
|
||||
var targetObj = opener.document.<?php echo $target ?>;
|
||||
var myTA;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ UI::contentContainerStart();
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
<h2><?= getMLText('databasesearch') ?></h2>
|
||||
<h2><?php echo getMLText('databasesearch') ?></h2>
|
||||
<form action="../op/op.Search.php" name="form1" onsubmit="return checkForm();">
|
||||
<table class="searchform">
|
||||
<tr>
|
||||
|
|
@ -197,7 +197,7 @@ echo "</td>\n</tr>\n";
|
|||
<div style="width: 35%; float: left; margin-left: 20px;">
|
||||
<form action="../op/op.SearchFulltext.php" name="form2" onsubmit="return checkForm();">
|
||||
<table class="searchform">
|
||||
<h2><?= getMLText('fullsearch') ?></h2>
|
||||
<h2><?php echo getMLText('fullsearch') ?></h2>
|
||||
<tr>
|
||||
<td><?php printMLText("search_query");?>:</td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ UI::contentContainerStart();
|
|||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("role");?>:</td>
|
||||
<td><select name="role"><option value="<?= LetoDMS_Core_User::role_user ?>"><?php printMLText("role_user"); ?></option><option value="<?= LetoDMS_Core_User::role_admin ?>"><?php printMLText("role_admin"); ?></option><option value="<?= LetoDMS_Core_User::role_guest ?>"><?php printMLText("role_guest"); ?></option></select></td>
|
||||
<td><select name="role"><option value="<?php echo LetoDMS_Core_User::role_user ?>"><?php printMLText("role_user"); ?></option><option value="<?php echo LetoDMS_Core_User::role_admin ?>"><?php printMLText("role_admin"); ?></option><option value="<?php echo LetoDMS_Core_User::role_guest ?>"><?php printMLText("role_guest"); ?></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("is_hidden");?>:</td>
|
||||
|
|
@ -264,7 +264,7 @@ UI::contentContainerStart();
|
|||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("role");?>:</td>
|
||||
<td><select name="role"><option value="<?= LetoDMS_Core_User::role_user ?>"><?php printMLText("role_user"); ?></option><option value="<?= LetoDMS_Core_User::role_admin ?>" <?php if($currUser->getRole() == LetoDMS_Core_User::role_admin) echo "selected"; ?>><?php printMLText("role_admin"); ?></option><option value="<?= LetoDMS_Core_User::role_guest ?>" <?php if($currUser->getRole() == LetoDMS_Core_User::role_guest) echo "selected"; ?>><?php printMLText("role_guest"); ?></option></select></td>
|
||||
<td><select name="role"><option value="<?php echo LetoDMS_Core_User::role_user ?>"><?php printMLText("role_user"); ?></option><option value="<?php echo LetoDMS_Core_User::role_admin ?>" <?php if($currUser->getRole() == LetoDMS_Core_User::role_admin) echo "selected"; ?>><?php printMLText("role_admin"); ?></option><option value="<?php echo LetoDMS_Core_User::role_guest ?>" <?php if($currUser->getRole() == LetoDMS_Core_User::role_guest) echo "selected"; ?>><?php printMLText("role_guest"); ?></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("is_hidden");?>:</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user