
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="author" content="Rainy" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <link rel="shortcut icon" href="static/SmartWiki/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0">
    
    <title>Repositories - MxsDoc</title>
	<script type="text/javascript" src="lang/en.js"></script>
	<link href="css/logo/logo.css" rel="stylesheet">
    <!-- CSS: Bootstrap、font-awesome、boostrapQ、 -->
    <link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="static/styles/styles.css" rel="stylesheet">
    <link href="static/zTree/css/metroStyle/standardStyle.css" rel="stylesheet" id="zTreeCss">
	<link href="static/pagination/pagination.css" rel="stylesheet" >
	<script src="static/scripts/jquery.min.js"></script>
	<!-- this style define a lots css for project.html 
	<link rel="stylesheet" type="text/css" href="css/style.css">
    -->
    
    <style>
        /* 大图标 */
        .bigicon {
        	background-size:40px 40px !important;
		    width: 40px;
		    height: 40px;
        }

        /* 小图标 */
        .smallicon {
            background-size:20px 20px !important;
            width: 20px;
            height: 20px;
        }
    </style>
</head>
<body>
<div class="manual-reader">
    <header class="navbar navbar-static-top smart-nav navbar-fixed-top" role="banner">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand"  style="color: #445;font-weight: 600;" href="/DocSystem">
                	<i class="logo small"></i> 
                	MxsDoc
                </a>
                <div class="searchbar pull-left visible-lg-inline-block visible-md-inline-block">
                    <div class="form-inline">
                        <input class="form-control" id="searchWord" name="searchWord" type="search" placeholder="search file..." oninput="$('[id=\'searchWord\']:eq(1)').val(this.value)">
                        <button class="search-btn" onclick="searchDoc();">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
                <div class="btn-group dropdown-menu-right pull-right slidebar visible-xs-inline-block">
                    <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"><i class="fa fa-align-justify"></i></button>
                    <ul class="dropdown-menu" role="menu">
						<li id="mobileNewReposBtn"  style="display:none">
							<a href="#" title="Create a new repository" onclick="newRepos()">New Repository</a>
						</li>
						<li id="mobileGoManagerBtn" style="display:none">
							<a href="/DocSystem/manager/main.html" title="Management">Management</a>
						</li>
						
                        <li id="mobileLoginBtn">
                            <a onclick="showLoginPanel()" title="Sign In">Sign In</a>
                        </li>
                        <li id="mobileLogoutBtn"  style="display:none">
                            <a onclick="userLogout()" title="Log Out">Log Out</a>
                        </li>
                    </ul>
                </div>
             </div>

            <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
                <ul class="nav navbar-nav navbar-right">
				    <li id="userImgDiv" style="display:none"><img id="userImg" name="userImg" width="40px" height="40px" src="images/default/defaultHeadPic.png" onerror="UserImgErrHandler();" class="img-circle m5"/></li>
					<li id="userInfoDiv" style="display:none">
							<a href="" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span>Rainy</span><span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li><a href="/DocSystem/web/myHostPage_en.html">User Center</a></li>
								<li><a href="/DocSystem/web/shareManager_en.html">My Sharing</a></li>
								<li><a href="/DocSystem/web/reposManager_en.html">Repository Management</a></li>
								<li id="logoutBtn"><a onclick="userLogout()">Log Out</a></li>
							</ul>
					</li>
                    <li id="loginBtn">
                        <a onclick="showLoginPanel()"  title="Sign In">Sign In</a>
                    </li>
                    <li id="newReposBtn" style="display:none">
						<a href="#" title="New Repository" onclick="newRepos()">New Repository</a>
					</li>
					<li id="goManagerBtn" style="display:none">
						<a href="/DocSystem/manager/main_en.html" title="Management">Management</a>
					</li>
                </ul>
            </nav>
        </div>
    </header>

    <div class="container smart-container">
        <div class="row">
            <div class="searchbar visible-sm-inline-block visible-xs-inline-block" style="width: 95%; margin-left: 10px;">
                <div class="form-inline">
                    <input class="form-control line-search-input" id="searchWord" name="keyword" type="search" placeholder="keywords..." oninput="$('[id=\'searchWord\']:eq(0)').val(this.value)">
                    <button class="line-search-btn" onclick="searchDoc();">
                        <i class="fa fa-search"></i>
                    </button>
                </div>
            </div>
        </div>

        <div class="row">
            <div id="project-box" class="project-box"></div>
            <div class="clearfix"></div>
            <div class="manual-page">
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    <footer class="footer">
        <div class="container">
            <div class="row text-center">
                <!-- <ul>
                    <li><div id="qrcode"></div></li>
                </ul> -->
                <ul>
                    <li><a href="#">MxsDoc</a></li>
                    <li>&nbsp;·&nbsp;</li>
                    <li><a onclick="showFeebackPanel()">Report a problem</a> </li>
                </ul>
            </div>
        </div>
    </footer>

    <div id="scrollToTopDiv"></div>

    <!-- 利用bootstrap的响应式，判断是否小屏幕 -->
    <div id="visibleOnSmall" class="visible-xs"></div>
</div>

<script type="text/html" id="tmpl-projects">
    <ul>
	{{each list as repos i}}
    	<li>
        	<a href="project_en.html?vid={{ repos.id }}" class="box" title="" >
            	<div class="pull-left imgbox">
                	<i class="fa fa-desktop"></i>
            	</div>
            	<h4>{{ repos.name }}</h4>
            	<span></span>
        	</a>
        	<p class="summary hidden-xs hidden-sm hidden-md">
            	<a href="project_en.html?vid={{ repos.id }}" class="text">
                	{{ repos.info }}
            	</a>
        	</p>
    	</li>
    {{/each}}
    	<li>
        	<a href="myPreferLinks_en.html" class="box" title="" >
            	<div class="pull-left imgbox">
                	<i class="fa fa-star-o"></i>
            	</div>
            	<h4>My Websites</h4>
            	<span></span>
        	</a>
        	<p class="summary hidden-xs hidden-sm hidden-md">
            	<a href="myPreferLinks_en.html" class="text">Define your frequently used websites</a>
        	</p>
    	</li>
    </ul>
</script>

<script type="text/html" id="tmpl-searchResults">
    <div style="margin-top: 20px"></div>
    {{each list as doc i}}
        <div class="s-box">
            <!--<div class="s-img">
                <i class="{{doc.iconStyle}}"></i>
            </div>-->
            <div class="s-content-box">
                <h4 class="s-title">
                    <i class="{{doc.iconStyle}}"></i>
                    <a href="{{doc.link}}" title="" target="_blank">{{# doc.name}}</a>
                </h4>
                <div class="s-content">
                    {{doc.timeInfo}} {{# doc.content}}
                </div>
                <div class="s-footer">
                    <a href="{{doc.link}}" target="_blank">
                        {{ doc.reposName }} :: {{ doc.path }}
                    </a>
                </div>
            </div>

            <hr/>
        </div>
    {{/each}}
    <!-- 搜索结果分页功能 -->
    <div class="wrap">
        <ul id="newsList"></ul>
        <div id="pagination" class="l-page"></div>
    </div>
</script>

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="static/scripts/scripts.js" type="text/javascript"></script>
<script src="static/scripts/template.js" type="text/javascript"></script>
<script type="text/javascript" src="static/bootstrapQ/qiao.js"></script>
<script type="text/javascript" src="js/DocSys.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="static/pagination/jquery.pagination.js"></script>
<script src="js/qrcode.js"></script>
<script type="text/javascript" src="js/logon.js"></script>
<script type="text/javascript" src="projects.js"></script>
</body>
</html>