@{ ViewData["Title"] = "Index"; } @using SuperAdmin.Controllers; @using SuperAdmin.Models.View; @using SuperAdmin.Models.Object; @model TreeViewModel
@*

Toolbars

*@ @*
Right Click Me!
*@
    @{ for (int i = 0; i < Model.rows.data.Count; i++) { RowStructure row = Model.rows.data[i];
  • @row.name_global
  • } } @*
  • Beverages
    • Coffee
      • Black Tea
      • White Tea
      • Green Tea
        • Sencha
        • Gyokuro
        • Matcha
        • Pi Lo Chun
    • Mocha
      • Black Tea
      • White Tea
      • Green Tea
        • Sencha
        • Gyokuro
        • Matcha
        • Pi Lo Chun
    • Tea
      • Black Tea
      • White Tea
      • Green Tea
        • Sencha
        • Gyokuro
        • Matcha
        • Pi Lo Chun
  • *@

@*
*@
@*@{ // get the newest data folowing by each service for (int j = 0; j < 5; j++) { } }*@
No. Name Status Action Last Update
@(j + 1) bot.name bot.description bot.updateDate UtilsController.convertBotStatus(int.Parse(bot.status))
@*@{ int totalPage = Model.totalPage != null ? int.Parse(Model.totalPage) : 1;
@{
  • ‹‹
  • @{ if (totalPage <= 4) { for (int k = 1; k <= totalPage; k++) {
  • @k
  • } } else if (pageNow <= totalPage - 4) { for (int k = pageNow; (k <= pageNow + 4 && k <= totalPage); k++) {
  • @k
  • } } else { for (int k = totalPage - 4; k <= totalPage; k++) {
  • @k
  • } } }
  • ››
}
}*@
@**@