Example #1
0
      <?php 
echo html::textarea('content', htmlspecialchars($reply->content), "rows=20 class='area-1' tabindex=1");
?>
    </td>
  </tr>
  <tr>
    <th><?php 
echo $lang->thread->file;
?>
</th>
    <td>
    <?php 
if ($reply->files) {
    foreach ($reply->files as $file) {
        echo html::a($file->fullURL, $file->title . '.' . $file->extension, "target='_blank'") . ' ' . html::linkButton('X', inlink('deleteFile', "fileID={$file->id}&objectID={$reply->id}&objectType=reply"), 'btn btn-default', '', 'hiddenwin');
    }
}
echo $this->fetch('file', 'buildForm');
?>
    </td>
  </tr>
  <tr>
    <th></th>
    <td colspan='2' align='center'><?php 
echo html::submitButton('', 'btn btn-primary', 'onclick="return checkGarbage(\'content\')" tabindex=2') . html::backButton();
?>
</td></tr>
</table>
</form>
<?php 
include '../../common/view/footer.html.php';
        <tr>
          <th class='w-120px'><?php 
echo $lang->user->verifyPassword;
?>
</th>
          <td>
            <div class="required required-wrapper"></div>
            <?php 
echo html::password('verifyPassword', '', "class='form-control' placeholder='{$lang->user->placeholder->verify}'");
?>
          </td>
        </tr>
      </table>
    </fieldset>
    <div class='text-center'><?php 
echo html::submitButton('', '', 'btn-primary') . ' &nbsp; ' . html::backButton();
?>
</div>
  </form>
</div>
<?php 
js::set('passwordStrengthList', $lang->user->passwordStrengthList);
?>
<script>
function checkPassword(password)
{
    $('#passwordStrength').html(password == '' ? '' : passwordStrengthList[computePasswordStrength(password)]);
}
</script>
<?php 
include '../../common/view/footer.html.php';
Example #3
0
        $maxOrder = $sonModule->order;
    }
    $disabled = $sonModule->type == 'task' ? '' : 'disabled="true"';
    echo '<span>' . html::input("modules[id{$sonModule->id}]", $sonModule->name, 'class=form-control ' . $disabled) . '</span>';
}
for ($i = 0; $i < TREE::NEW_CHILD_COUNT; $i++) {
    echo '<span>' . html::input("modules[]", '', 'class=form-control') . '</span>';
}
?>
              </td>
            </tr>
            <tr>
              <td></td>
              <td colspan='2'>
                <?php 
echo html::submitButton() . html::backButton();
echo html::hidden('parentModuleID', $currentModuleID);
echo html::hidden('maxOrder', $maxOrder);
?>
      
                <input type='hidden' value='<?php 
echo $currentModuleID;
?>
' name='parentModuleID' />
              </td>
            </tr>
          </table>
        </div>
      </div>
    </form>
  </div>
Example #4
0
echo $lang->article->title;
?>
</th>
          <td colspan='2'><?php 
echo html::input('title', '', "class='form-control'");
?>
</td>
        </tr>
        <tr>
          <th><?php 
echo $lang->article->content;
?>
</th>
          <td colspan='2'><?php 
echo html::textarea('content', '', "rows='20' class='form-control'");
?>
</td>
        </tr>
        <tr>
          <th></th>
          <td colspan='2'><?php 
echo html::submitButton() . html::hidden('type', 'announce') . '&nbsp;&nbsp;' . html::backButton();
?>
</td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #5
0
</td>
      </tr>
      <tr>
        <th><?php 
echo $lang->build->files;
?>
</th>
        <td colspan='2'><?php 
echo $this->fetch('file', 'buildForm', array('fileCount' => 1));
?>
</td>
      </tr>
      <tr>
        <th><?php 
echo $lang->build->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', htmlspecialchars($build->desc), "rows='10' class='form-control'");
?>
</td>
      </tr>
      <tr><td></td><td colspan='2'><?php 
echo html::submitButton() . html::backButton() . html::hidden('project', $build->project);
?>
</td></tr>
    </table>
  </form>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #6
0
        <th><?php 
echo $lang->release->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', htmlspecialchars($release->desc), "rows=10 class='form-control'");
?>
</td>
      </tr>  
      <tr>
        <th><?php 
echo $lang->files;
?>
</th>
        <td colspan='2'><?php 
echo $this->fetch('file', 'buildform', array('fileCount' => 1));
?>
</td>
      </tr>  
      <tr>
        <td></td>
        <td colspan='2'><?php 
echo html::submitButton() . html::backButton() . html::hidden('product', $release->product);
?>
</td>
      </tr>
    </table>
  </form>  
</div>
<?php 
include '../../common/view/footer.html.php';
Example #7
0
echo $lang->cron->remark;
?>
</th>
          <td colspan='2'><?php 
echo html::input('remark', $cron->remark, "class='form-control'");
?>
</td>
        </tr>
        <tr>
          <th><?php 
echo $lang->cron->type;
?>
</th>
          <td><?php 
echo html::select('type', $lang->cron->typeList, $cron->type, "class='form-control'");
?>
</td>
        </tr>
        <tr>
          <th></th>
          <td><?php 
echo html::submitButton() . "&nbsp;&nbsp;" . html::backButton();
?>
</td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #8
0
        <th><?php 
echo $lang->doc->digest;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('digest', '', "class='form-control' rows=3");
?>
</td>
      </tr>  
      <tr id='fileBox'>
        <th><?php 
echo $lang->doc->files;
?>
</th>
        <td colspan='2'><?php 
echo $this->fetch('file', 'buildform');
?>
</td>
      </tr>  
      <tr>
        <td></td>
        <td><?php 
echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);
?>
</td>
      </tr>
    </table>
  </form>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #9
0
    <td><?php 
    echo html::select("group[{$i}]", $groups, $i == 0 ? '' : 'ditto', 'class="form-control"');
    ?>
</td>
  </tr>
  <?php 
}
?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan='5' align='left'>
    <?php 
echo html::selectAll() . html::selectReverse();
?>
    <?php 
$pager->show();
?>
    </td>
  </tr>
  <tr>
    <td colspan='5' align='center'><?php 
echo html::submitButton() . html::backButton() . '&nbsp;&nbsp;' . $lang->user->notice->checkbox;
?>
</td>
  </tr>
  </tfoot>
</table>
</form>
<?php 
include '../../../common/view/footer.html.php';
Example #10
0
        $maxOrder = $sonDept->order;
    }
    echo html::input("depts[id{$sonDept->id}]", $sonDept->name, "class='form-control'");
}
for ($i = 0; $i < DEPT::NEW_CHILD_COUNT; $i++) {
    echo html::input("depts[]", '', "class='form-control'");
}
?>
                </td>
                <td></td>
              </tr>
              <tr>
                <td></td>
                <td>
                  <?php 
echo html::submitButton() . html::backButton() . html::hidden('maxOrder', $maxOrder);
?>
                  <input type='hidden' value='<?php 
echo $deptID;
?>
' name='parentDeptID' />
                </td>
              </tr>
            </table>
          </form>
        </div>
      </div>

    </div>
  </div>
</div>
Example #11
0
    <tr>
      <th class='rowhead'><?php 
echo $lang->bug->keywords;
?>
</th>
      <td><?php 
echo html::input('keywords', $keywords, "class='text-1'");
?>
</td>
    </tr>
    <tr>
      <th class='rowhead'><?php 
echo $lang->bug->files;
?>
</th>
      <td><?php 
echo $this->fetch('file', 'buildform', 'fileCount=2&percent=0.85');
?>
</td>
    </tr>  
    <tr>
      <td colspan='2' class='a-center'>
        <?php 
echo html::submitButton() . html::backButton() . html::hidden('case', $caseID);
?>
      </td>
    </tr>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
Example #12
0
      <tr>
        <th><?php echo $lang->doc->info;?></th>
        <td colspan='2'><?php echo html::textarea('info', '', "class='form-control' style='width:90%; height:200px'");?></td>
      </tr> 
      <tr>
        <th><?php echo $lang->doc->remark;?></th>
        <td colspan='2'><?php echo html::textarea('remark', '', "class='form-control' style='width:90%; height:200px'");?></td>
      </tr> 
      <tr>
        <th><?php echo $lang->doc->add_user;?></th>
        <td colspan='2'><?php echo html::input('add_user', '', "class='form-control'");?></td>
      </tr> 
      <tr>
        <th><?php echo $lang->doc->add_time;?></th>
        <td colspan='2'><?php echo html::input('add_time',date('Y-m-d'), "class='form-control w-100px form-date' onchange='computeWorkDays()' placeholder='" . $lang->doc->add_time . "'");?></td>
      </tr> 
      
      
      <tr id='fileBox'>
        <th><?php echo $lang->doc->files;?></th>
        <td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
      </tr>  
      <tr>
        <td></td>
        <td><?php echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);?></td>
      </tr>
    </table>
  </form>
</div>
<?php include '../../common/view/footer.html.php';?>
Example #13
0
$maxOrder = 0;
foreach ($children as $child) {
    if ($child->order > $maxOrder) {
        $maxOrder = $child->order;
    }
    echo "<div class='form-group'>";
    echo "<div class='col-xs-6 col-md-4 col-md-offset-2'>" . html::input("children[{$child->id}]", $child->name, "class='form-control'") . "</div>";
    echo "</div>";
    echo html::hidden("mode[{$child->id}]", 'update');
}
for ($i = 0; $i < TREE::NEW_CHILD_COUNT; $i++) {
    echo "<div class='form-group'>";
    echo "<div class='col-xs-6 col-md-4 col-md-offset-2'>" . html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->common}'") . "</div>";
    echo "</div>";
    echo html::hidden('mode[]', 'new');
}
if ($type == 'forum' and $boardChildrenCount == 0) {
    echo "<div class='form-group'><div class='col-xs-6 col-md-4 col-md-offset-2'><div class='alert alert-warning mg-0'>{$this->lang->board->placeholder->setChildren}</div></div></div>";
}
$button = $type == 'dept' ? html::submitButton() . html::backButton() : html::submitButton();
echo "<div class='form-group'><div class='col-xs-8 col-md-offset-2'>" . $button . "</div></div>";
echo html::hidden('parent', $parent);
echo html::hidden('maxOrder', $maxOrder);
?>
    </div>
  </div>
</form>
<?php 
if (isset($pageJS)) {
    js::execute($pageJS);
}
Example #14
0
</td>
      <td><?php 
    echo html::select("pri[{$bug->id}]", $lang->task->priList, 3);
    ?>
</td>
      <td><?php 
    echo html::select("assignedTo[{$bug->id}]", $users, zget($users, $bug->assignedTo, '', $bug->assignedTo));
    ?>
</td>
      <td><?php 
    echo html::input("estimate[{$bug->id}]", '', 'size=4');
    ?>
</td>
    </tr>
    <?php 
}
?>
    </tbody>
    <tr><td colspan='9'><div class='f-right'><?php 
$pager->show();
?>
</div></td></tr>
  </table>
  <div><?php 
echo html::selectAll() . html::selectReverse() . html::submitButton($lang->import) . html::backButton();
?>
</div>
</form>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #15
0
      <td><?php 
    echo html::input("consumed[{$id}]", $effort->consumed, 'autocomplete="off" class="form-control"');
    ?>
</td>
      <td><?php 
    $disabled = $effort->objectType == 'task' ? '' : 'disabled';
    echo html::input("left[{$id}]", $effort->left, "autocomplete='off' class='{$disabled} form-control' " . $disabled);
    ?>
</td>
      <td style='overflow:visible'><?php 
    echo html::select("objectType[{$id}]", $typeList, "{$effort->objectType}_{$effort->objectID}", 'tabindex="9999" onchange=setLeftInput(this) class="form-control chosen"');
    ?>
 
    </tr>  
    <?php 
}
?>
    <tr>
      <td colspan='6' class='text-center'>
        <?php 
echo html::hidden('effortIDList', join(',', $_POST['effortIDList']));
?>
        <?php 
echo html::submitButton('', "onclick='return checkTaskLeft(\"{$lang->effort->noticeFinish}\")'") . html::backButton();
?>
      </td>
    </tr>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
Example #16
0
</td>
      <td class='text-left' style='overflow:visible'><?php 
    echo html::select("assignedTo[{$bug->id}]", $users, zget($users, $bug->assignedTo, '', $bug->assignedTo), "class='input-sm form-control chosen'");
    ?>
</td>
      <td><?php 
    echo html::input("estimate[{$bug->id}]", '', 'size=4 class="input-sm form-control"');
    ?>
</td>
    </tr>
    <?php 
}
?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan='8'>
          <div class='table-actions clearfix'><?php 
echo "<div class='btn-group'>" . html::selectButton() . '</div>' . html::submitButton($lang->import) . html::backButton();
?>
          </div>
          <?php 
$pager->show();
?>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
Example #17
0
        <td><?php echo html::input('email', '', "class='form-control'");?></td>
      </tr>
      <!-- 
      <tr>
        <th><?php echo $lang->user->commiter;?></th>
        <td><?php echo html::input('commiter', '', "class='form-control'");?></td>
      </tr>
       -->
      <tr>
        <th><?php echo $lang->user->join;?></th>
        <td><?php echo html::input('join', '', "class='form-control form-date'");?></td>
      </tr>
      <tr>
        <th><?php echo $lang->user->gender;?></th>
        <td><?php echo html::radio('gender', (array)$lang->user->genderList, 'm');?></td>
      </tr>
      <tr>
        <th><?php echo $lang->user->verifyPassword;?></th>
        <td>
          <div class="required required-wrapper"></div>
          <?php echo html::password('verifyPassword', '', "class='form-control' autocomplete='off' placeholder='{$lang->user->placeholder->verify}'");?>
        </td>
      </tr>

      <tr><th></th><td><?php echo html::submitButton() . html::backButton();?></td></tr>
    </table>
  </form>
</div>
<?php js::set('passwordStrengthList', $lang->user->passwordStrengthList)?>
<?php include '../../common/view/footer.html.php';?>
Example #18
0
echo html::input('keywords', $keywords, 'class="form-control"');
?>
</td>
      </tr>
     <tr>
        <th><?php 
echo $lang->story->legendAttatch;
?>
</th>
        <td colspan='3'><?php 
echo $this->fetch('file', 'buildform');
?>
</td>
      </tr>  
      <tr><td></td><td colspan='3' class='text-center'><?php 
echo html::submitButton("保存", "onclick='return checkData()'") . html::backButton();
?>
</td></tr>
    </table>
    <span id='responser'></span>
  </form>
</div>
<script>
var arr="<?php 
echo $isStory;
?>
"
function checkData()
{
	var spec=$("#spec").val();
	if(spec==""){
Example #19
0
    echo "class='hidden'";
}
?>
>
        <th><?php 
echo $lang->project->whitelist;
?>
</th>
        <td colspan='2'><?php 
echo html::checkbox('whitelist', $groups, $whitelist);
?>
</td>
      </tr>
      <tr>
        <td></td><td colspan='2' class='text-center'><?php 
echo html::submitButton('', "onclick='return checkData2()';") . html::backButton();
?>
</td>
      </tr>
    </table>
  </form>
</div>
<div class='modal fade' id='copyProjectModal'>
  <div class='modal-dialog mw-800px'>
    <div class='modal-header'>
      <button type='button' class='close' data-dismiss='modal'>&times;</button>
      <h4 class='modal-title' id='myModalLabel'><?php 
echo $lang->project->copyTitle;
?>
</h4>
    </div>
Example #20
0
</label>
        <div class='col-md-11 col-sm-10'><?php 
echo html::textarea('content', htmlspecialchars($reply->content), "rows='15' class='form-control'");
?>
</div>
      </div>
      <div class='form-group'>
        <label class='col-md-1 col-sm-2 control-label'><?php 
echo $lang->thread->file;
?>
</label>
        <div class='col-md-7 col-sm-8 col-xs-11'>
          <?php 
$this->reply->printFiles($reply, $canManage = true);
echo $this->fetch('file', 'buildForm');
?>
        </div>
      </div>
      <div class='form-group hiding' id='captchaBox'></div>
      <div class='form-group'>
        <label class='col-md-1 col-sm-2'></label>
        <div class='col-md-11 col-sm-10'><?php 
echo html::submitButton() . ' &nbsp; ' . html::backButton();
?>
</div>
      </div>
    </form>
  </div>
</div>
<?php 
include TPL_ROOT . 'common/footer.html.php';
Example #21
0
          <th><?php echo $lang->user->zipcode;?></th>
          <td><?php echo html::input('zipcode', $user->zipcode, "class='form-control'");?></td>
          <td></td>
        </tr>
      </table>
    </fieldset>
    <fieldset>
      <legend><?php echo $lang->user->verify;?></legend>
      <table class='table table-form'>
        <tr>
          <th class='w-120px'><?php echo $lang->user->verifyPassword;?></th>
          <td>
            <div class="required required-wrapper"></div>
            <?php echo html::password('verifyPassword', '', "class='form-control' placeholder='{$lang->user->placeholder->verify}'");?>
          </td>
        </tr>
      </table>
    </fieldset>
    <div class='text-center'><?php echo html::submitButton('', '', 'btn-primary') . ' &nbsp; ' . html::backButton();?></div>
  </form>
</div>
<?php js::set('passwordStrengthList', $lang->user->passwordStrengthList)?>
<script>
function checkPassword(password)
{
    $('#passwordStrength').html(password == '' ? '' : passwordStrengthList[computePasswordStrength(password)]);
    $('#passwordStrength').css('display', password == '' ? 'none' : 'table-cell');
}
</script>
<?php include '../../common/view/footer.html.php';?>
Example #22
0
        <td>
          &nbsp; &nbsp; <?php 
echo html::radio('delta', $lang->productplan->endList, '', "onclick='computeEndDate(this.value)'");
?>
        </td>
      </tr>
      <tr>
        <th><?php 
echo $lang->productplan->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', '', "rows='10' class='form-control'");
?>
</td>
      </tr>
      <tr>
        <td></td>
        <td colspan='2'>
          <?php 
echo html::submitButton();
echo html::backButton();
echo html::hidden('product', $product->id);
?>
        </td>
      </tr>
    </table>
  </form>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #23
0
          </table>
          <?php 
    }
    ?>
        </td>
      </tr>
      <?php 
}
?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan='11' class='text-center'>
          <?php 
if (!$insert) {
    include '../../../common/view/noticeimport.html.php';
    echo "<button type='button' data-toggle='myModal' class='btn btn-primary'>{$lang->save}</button>";
} else {
    echo html::submitButton();
}
echo ' &nbsp; ' . html::backButton();
?>
  
        </td>
      </tr>
    </tfoot>
  </table>
</form>
<script>$(function(){affix('thead')})</script>
<?php 
include '../../../common/view/footer.html.php';
Example #24
0
?>
<div class='container'>
  <div class='modal-dialog'>
    <?php 
if (isset($error)) {
    ?>
    <div class='modal-header'><strong><?php 
    echo $lang->install->error;
    ?>
</strong></div>
    <div class='modal-body'><div class='alert alert-danger'><?php 
    echo $error;
    ?>
</div></div>
    <div class='modal-footer'><?php 
    echo html::backButton($lang->install->pre, 'btn btn-primary');
    ?>
</div>
    <?php 
} else {
    ?>
    <div class='modal-header'><strong><?php 
    echo $lang->install->saveConfig;
    ?>
</strong></div>
    <div class='modal-body'>
      <div class='form-group'><?php 
    echo html::textArea('config', $result->content, "rows='10' class='form-control small'");
    ?>
</div>
      <div class='alert alert-default'><?php 
Example #25
0
    <th><?php 
    echo $lang->ldap->email;
    ?>
</th>
    <td><?php 
    echo html::input('email', empty($ldapConfig->email) ? 'mail' : $ldapConfig->email, "class='form-control'");
    ?>
</td>
  </tr>
  <tr>
    <th><?php 
    echo $lang->ldap->phone;
    ?>
</th>
    <td><?php 
    echo html::input('phone', empty($ldapConfig->phone) ? 'telephonenumber' : $ldapConfig->phone, "class='form-control'");
    ?>
</td>
  </tr>
  <tr>
    <td colspan='3' align='center'><?php 
    echo html::submitButton() . html::backButton() . '&nbsp;&nbsp;' . html::a($this->createLink('user', 'importLDAP'), $lang->ldap->import);
    ?>
</td>
  </tr>
</table>
</form>
</div>
<?php 
}
include '../../common/view/footer.html.php';