Example #1
0
        } else {
            ?>
							<li class="list-group-item"><?php 
            echo htmlspecialchars($value);
            ?>
</li>
						 	<?php 
        }
    }
    ?>
			</ul>
		<?php 
} else {
    ?>
			<div class="alert alert-warning" role="alert"><?php 
    echo t('noDiff', array(getPath(), getRev(), getRev2()));
    ?>
</div>
		<?php 
}
?>
	</div>
	<style type="text/css">
	.list-group .list-group-item{
		padding: 5px 7px;
		min-height: 32px;
		overflow-wrap: break-word;
	}
	</style>
	<?php 
/*<div class="alert alert-error" role="alert">Le fichier <strong><?php echo getRepoPath().getPath() ?></strong> n'éxiste pas.</div>
    echo 'disabled';
}
?>
" onclick="revNav('-')" type="submit"><span class="glyphicon glyphicon-chevron-left"></span></button>
					    </span>
						<input type="text" class="form-control input-sm rev_input" name="rev" value="<?php 
echo getRev(true);
?>
" placeholder="HEAD">
					    <span class="input-group-btn">
					    	<button class="btn btn-default btn-sm" type="submit"><span class="glyphicon glyphicon-screenshot"></span></button>
					    	<button class="btn btn-default btn-sm <?php 
if (getLastRev() == getRev(true) or 'HEAD' == getRev()) {
    echo 'disabled';
}
?>
" onclick="revNav('max')" type="submit" default><span class="glyphicon glyphicon-step-forward"></span></button>
					    	<button class="btn btn-default btn-sm <?php 
if (getLastRev() == getRev(true) or 'HEAD' == getRev()) {
    echo 'disabled';
}
?>
" onclick="revNav('+')" type="submit"><span class="glyphicon glyphicon-chevron-right"></span></button>
					    </span>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
Example #3
0
        ?>


				<li><a href="<?php 
        echo getUrl("null", getPath(), true, array('pagenb' => $nbPage, 'max' => getMax(), 'mode' => $_GET['mode']));
        ?>
">&raquo;</a></li>
			</ul>

			<?php 
    }
} else {
    ?>
 
			<div class="alert alert-warning" role="alert"><?php 
    echo t('noLog', array(getPath(), getRev(), getRev2()));
    ?>
</div>
		<?php 
}
?>
	</div>
	<style type="text/css">
		.table td.path {
		  white-space: nowrap;
		  overflow: hidden;
		  text-overflow: ellipsis;
		}

		.table-responsive {
			overflow-x: auto;
Example #4
0
">

					<span class="input-group-addon"><?php 
echo t('maxLines');
?>
:</span>
					<input type="text" class="form-control input-sm" name="max" value="<?php 
echo getMax();
?>
">
				</div>
			</div>
			<div class="form-group btn-group-justified">
				<div class="input-group">
					<input type="text" class="form-control input-sm rev" name="rev" value="<?php 
echo getRev(true);
?>
" placeholder="HEAD">
					<span class="input-group-addon">:</span>
					<input type="text" class="form-control input-sm rev2" name="rev2" value="<?php 
echo getRev2(true);
?>
" placeholder="HEAD">
				    <span class="input-group-btn">
				    	<button class="btn btn-default btn-sm" type="submit"><span class="glyphicon glyphicon-arrow-right"></span></button>
				    </span>
				</div>
			</div>
		</form>

	</div>
Example #5
0
function saveDocument($db, $doc, $overwrite = false)
{
    if ($overwrite && isset($doc->_id) && !isset($doc->_rev)) {
        $rev = getRev($db, $doc->_id);
        if ($rev) {
            $doc->_rev = $rev;
        }
    }
    if (isset($doc->_id)) {
        $response = callHttp('PUT ' . getServer() . '/' . $db . '/' . $doc->_id, json_encode($doc), null, TRUE, FALSE, 'application/json');
    } else {
        $response = callHttp('POST ' . getServer() . '/' . $db, json_encode($doc), null, TRUE, FALSE, 'application/json');
    }
    return $response;
}
Example #6
0
function setRev($Rev = "")
{
    global $TmpRev;
    $TmpRev = getRev();
    $_GET['rev'] = $Rev;
}