mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
first commit
This commit is contained in:
54
tpl/admin/page_example_graph.php
Normal file
54
tpl/admin/page_example_graph.php
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
<?php IncludeCom('dev/bootstrap3')?>
|
||||
|
||||
<h1>Примеры графов</h1>
|
||||
|
||||
<form action="<?= GetCurUrl()?>" method="post" class="form-horizontal" role="form" class="form-inline">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-offset-2 col-lg-6">
|
||||
<?= isset($msg) ? $msg : ""?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">ID graph исходного графа</label>
|
||||
<input type="text" id="inputName" autocomplete="on" name="source_id" value="<?= Post("source_id")?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">ID graph конечного графа</label>
|
||||
<input type="text" id="inputName" autocomplete="on" name="dest_id" value="<?= Post("dest_id")?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">Русское название</label>
|
||||
<input type="text" id="inputName" autocomplete="on" name="title_ru" value="<?= Post("title_ru")?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">Английское название</label>
|
||||
<input type="text" id="inputName" autocomplete="on" name="title_en" value="<?= Post("title_en")?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName" class="col-lg-2 control-label">Изображение</label>
|
||||
<input type="text" id="inputName" autocomplete="on" name="image" value="<?= Post("image")?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-lg-offset-2 col-lg-6">
|
||||
<button type="submit" class="btn btn-primary">Добавить</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<?php for ($i = 0; $i < count($examples); $i++): ?>
|
||||
<p>
|
||||
<?= $examples[$i]["title_ru"] ?> -
|
||||
<?= $examples[$i]["title_en"] ?> -
|
||||
<a href="/?graph=<?= $examples[$i]["id"] ?>" target="_blank">http://graphonline.ru/?graph=<?= $examples[$i]["id"] ?></a>
|
||||
</p>
|
||||
<?php endfor; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user