当前位置: 首页>>代码示例>>PHP>>正文


PHP ifaceButton函数代码示例

本文整理汇总了PHP中ifaceButton函数的典型用法代码示例。如果您正苦于以下问题:PHP ifaceButton函数的具体用法?PHP ifaceButton怎么用?PHP ifaceButton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ifaceButton函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

    $v0 = display('UserRule', 'display', $idv0);
    echo '
            <LI CLASS="item UI" ID="0.' . $i0 . '">';
    if (!$edit) {
        echo '
              <A HREF="' . serviceref('UserRule', array('UserRule' => urlencode($idv0))) . '">' . htmlspecialchars($v0) . '</A>';
    } else {
        echo htmlspecialchars($v0);
    }
    echo '</LI>';
}
if ($edit) {
    echo '
            <LI CLASS="new UI" ID="0.' . count($Regellijst) . '">new Regellijst</LI>';
}
echo '
          </UL>';
?>
 
      </DIV>
    </DIV>
    <?php 
if ($edit) {
    echo '</FORM>';
}
if (!$edit) {
    $buttons = $buttons;
} else {
    $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1');", "Save") . ifaceButton(serviceref($_REQUEST['content']), "Cancel");
}
writeTail($buttons);
开发者ID:4ZP6Capstone2015,项目名称:ampersand-models,代码行数:31,代码来源:Regels.php

示例2: ifaceButton

    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Document->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Document=" . urlencode($Document->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Document=" . urlencode($Document->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Document=" . urlencode($Document->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Document is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Document object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Document object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
开发者ID:sapray,项目名称:ampersand-models,代码行数:31,代码来源:Document.php

示例3: UI_Clerks

echo '
          </UL>';
?>
 
      </DIV>
    </DIV>
    <?php 
if ($edit) {
    ?>
    <SCRIPT type="text/javascript">
      // code for editing blocks in Clerks
      function UI_Clerks(id){
        return '<DIV>name: <SPAN CLASS="item UI_Clerks_name" ID="'+id+'.0"></SPAN></DIV>'
             + '<DIV>court: <UL><LI CLASS="new UI_Clerks_court" ID="'+id+'.1">new court</LI></UL></DIV>'
             + '<DIV>role: <SPAN CLASS="item UI_Clerks_role" ID="'+id+'.2"></SPAN></DIV>'
              ;
      }
    </SCRIPT>
    <?php 
}
?>
    <?php 
if ($edit) {
    echo '</FORM>';
}
if (!$edit) {
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1", "Edit");
} else {
    $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1');", "Save") . ifaceButton($_SERVER['PHP_SELF'], "Cancel");
}
writeTail($buttons);
开发者ID:sapray,项目名称:ampersand-models,代码行数:31,代码来源:Magistrates.php


注:本文中的ifaceButton函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。