예제 #1
0
    $coin->rpcuser = '******';
}
echo CUFHtml::openActiveCtrlHolder($coin, 'rpcuser');
echo CUFHtml::activeLabelEx($coin, 'rpcuser');
echo CUFHtml::activeTextField($coin, 'rpcuser', array('maxlength' => 200));
echo "<p class='formHint2'>.</p>";
echo CUFHtml::closeCtrlHolder();
if (empty($coin->rpcpasswd)) {
    $coin->rpcpasswd = 'e7ec005fhdsj3k6po6afbb84545eb24';
}
echo CUFHtml::openActiveCtrlHolder($coin, 'rpcpasswd');
echo CUFHtml::activeLabelEx($coin, 'rpcpasswd');
echo CUFHtml::activeTextField($coin, 'rpcpasswd', array('maxlength' => 200));
echo "<p class='formHint2'>.</p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'hassubmitblock');
echo CUFHtml::activeLabelEx($coin, 'hassubmitblock');
echo CUFHtml::activeCheckBox($coin, 'hassubmitblock');
echo "<p class='formHint2'>.</p>";
echo CUFHtml::closeCtrlHolder();
echo CUFHtml::openActiveCtrlHolder($coin, 'txmessage');
echo CUFHtml::activeLabelEx($coin, 'txmessage');
echo CUFHtml::activeCheckBox($coin, 'txmessage');
echo "<p class='formHint2'>.</p>";
echo CUFHtml::closeCtrlHolder();
echo "</div>";
echo "</div>";
echo CUFHtml::closeTag('fieldset');
showSubmitButton($update ? 'Save' : 'Create');
echo CUFHtml::endForm();
예제 #2
0
function showSubmitButton($name)
{
    echo "<div class='buttonHolder'>";
    echo CUFHtml::submitButton($name, array('id' => 'btnSubmit'));
    echo "</div>";
    echo "<script>\$(function(){ \$('#btnSubmit').button(); }); </script>";
}