行 1: #pragma checksum "D:\web\THZServer\views\Video\VideoDetail.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DD43E82D6981DE414E573383E049AD9C94FE9890"
行 2: //------------------------------------------------------------------------------
行 3: // <auto-generated>
行 4: // 此代码由工具生成。
行 5: // 运行时版本:4.0.30319.42000
行 6: //
行 7: // 对此文件的更改可能会导致不正确的行为,并且如果
行 8: // 重新生成代码,这些更改将会丢失。
行 9: // </auto-generated>
行 10: //------------------------------------------------------------------------------
行 11:
行 12: namespace ASP {
行 13: using System;
行 14: using System.Collections.Generic;
行 15: using System.IO;
行 16: using System.Linq;
行 17: using System.Net;
行 18: using System.Web;
行 19: using System.Web.Helpers;
行 20: using System.Web.Security;
行 21: using System.Web.UI;
行 22: using System.Web.WebPages;
行 23: using System.Web.Mvc;
行 24: using System.Web.Mvc.Ajax;
行 25: using System.Web.Mvc.Html;
行 26: using System.Web.Routing;
行 27:
行 28: #line 17 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 29: using THZ.Video.Auth;
行 30:
行 31: #line default
行 32: #line hidden
行 33:
行 34: #line 18 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 35: using THZ.Video.Common;
行 36:
行 37: #line default
行 38: #line hidden
行 39:
行 40: #line 19 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 41: using THZ.Video.Enums;
行 42:
行 43: #line default
行 44: #line hidden
行 45:
行 46: #line 20 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 47: using Uninf.Auth;
行 48:
行 49: #line default
行 50: #line hidden
行 51:
行 52:
行 53: public class _Page_views_Video_VideoDetail_cshtml : THZ.Common_Web.WebViewPage.THZWebViewPage<THZ.Video.Models.ViewModels.VideoViewModel> {
行 54:
行 55: #line hidden
行 56:
行 57:
行 58: public _Page_views_Video_VideoDetail_cshtml() {
行 59: }
行 60:
行 61: protected ASP.global_asax ApplicationInstance {
行 62: get {
行 63: return ((ASP.global_asax)(Context.ApplicationInstance));
行 64: }
行 65: }
行 66:
行 67: public override void Execute() {
行 68:
行 69:
行 70: #line 1 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 71:
行 72: if (@ViewBag.type == UserType.Company)
行 73: {
行 74: ViewBag.Title = "视频详情";
行 75: ViewBag.nowCtrl = "VideoTypeList";
行 76: Layout = "~/Views/Shared/CompanyIndexLayout.cshtml";
行 77: }
行 78: else if (@ViewBag.type == UserType.User)
行 79: {
行 80: ViewBag.Title = "个人视频分类列表";
行 81: ViewBag.nowCtrl = "uservideo";
行 82: Layout = "~/Views/Shared/UserIndexLayout.cshtml";
行 83: }
行 84: var userType = (UserType)ViewBag.Type;
行 85: var id = ViewContext.RouteData.Values["id"];
行 86:
行 87:
行 88:
行 89: #line default
行 90: #line hidden
行 91:
行 92:
行 93:
行 94:
行 95:
行 96: WriteLiteral(@"<style>
行 97: #VideoDetail .pic_share{ width:1000px;}
行 98: #VideoDetail .pic_share_operat{ width: 1000px; }
行 99: #VideoDetail .fnForm { width:796px;
行 100: }
行 101: #VideoDetail .pic_lub_title{
行 102: width: 950px;
行 103: }
行 104: #VideoDetail #VideoTypeId{ margin-top:5px;}
行 105: #VideoDetail .pic_share_list li { width: auto;
行 106: }
行 107: #VideoDetail .pic_share_list { width:1000px;
行 108: }
行 109: #VideoDetail .Blog_Comment_wrap { width: 960px;
行 110: }
行 111: #VideoDetail .Blog_review {
行 112: width:100%;
行 113: }
行 114: #VideoDetail .bianjiqi {
行 115: width:100%;
行 116: }
行 117: </style>
行 118: ");
行 119:
行 120:
行 121: DefineSection("scripts", () => {
行 122:
行 123: WriteLiteral("\r\n\r\n <link href=\"http://www.tuohuangzu.com/Content/newtheme/com_video/common/c" +
行 124: "ss/pic_store_layout.css\" rel=\"stylesheet\" />\r\n <link href=\"http://www.tuohuan" +
行 125: "gzu.com/Content/newtheme/com_video/css/pic_gallery.css\" rel=\"stylesheet\" />\r\n " +
行 126: " <link href=\"http://www.tuohuangzu.com/Content/newtheme/com_video/css/my_pic.css" +
行 127: "\" rel=\"stylesheet\" />\r\n <script src=\"http://www.tuohuangzu.com/Scripts/zeroCl" +
行 128: "ipboard/ZeroClipboard.js\" type=\"text/javascript\"></script>\r\n\r\n <script src=\"h" +
行 129: "ttp://www.tuohuangzu.com/Scripts/kindeditor/kindeditor.js\"></script>\r\n <scrip" +
行 130: "t src=\"http://www.tuohuangzu.com/Scripts/kindeditor/lang/zh_CN.js\"></script>\r\n\r\n" +
行 131: " <script src=\"http://www.tuohuangzu.com/Scripts/kindeditor/config/video.js\"><" +
行 132: "/script>\r\n <script src=\"http://www.tuohuangzu.com/Scripts/THZ.NewComment.js\" " +
行 133: "type=\"text/javascript\"></script>\r\n<script src=\"http://usershare.tuohuangzu.com/S" +
行 134: "cripts/THZ.ShareDialog.js\" type=\"text/javascript\"></script>\r\n <script languag" +
行 135: "e=\"javascript\" type=\"text/javascript\">\r\n //复制页面路径\r\n var thzClip = " +
行 136: "null;\r\n var thzClipVideo = null;\r\n $(function () {\r\n th" +
行 137: "zClip = new ZeroClipboard.Client();\r\n thzClip.setHandCursor(true);\r\n " +
行 138: " thzClip.addEventListener(\'mouseOver\', my_mouse_over);\r\n th" +
行 139: "zClip.addEventListener(\'complete\', my_complete);\r\n thzClip.glue(\'copy" +
行 140: "TypeUrl\');\r\n\r\n\r\n\r\n var clip = new ZeroClipboard.Client();\r\n " +
行 141: " clip.setHandCursor(true);\r\n clip.addEventListener(\'mouseOver\', func" +
行 142: "tion (client) {\r\n clip.setText(\"<iframe height=498 width=510 src=" +
行 143: "\\\"http://video.tuohuangzu.com/sharevideo/");
行 144:
行 145:
行 146:
行 147: #line 74 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 148: Write(Model.Id);
行 149:
行 150:
行 151: #line default
行 152: #line hidden
行 153: WriteLiteral("\\\" frameborder=0 allowfullscreen></iframe>\");\r\n });\r\n clip." +
行 154: "addEventListener(\'complete\', function (client, text) {\r\n tishi(\"复" +
行 155: "制成功,立即和好友分享!\");\r\n });\r\n clip.glue(\'copyVideoUrl\');\r\n\r\n " +
行 156: " });\r\n\r\n\r\n\r\n function my_mouse_over(client) {\r\n var html = " +
行 157: "window.location.href;\r\n thzClip.setText(html);\r\n }\r\n fu" +
行 158: "nction myVideo_mouse_over(client) {\r\n var html = $(\".pic_share_list\")" +
行 159: ".find(\"li\").html();\r\n thzClip.setText(html);\r\n }\r\n func" +
行 160: "tion my_complete(client, text) {\r\n tishi(\"复制成功,立即和好友分享!\");\r\n }" +
行 161: "\r\n\r\n\r\n String.prototype.replaceAll = function (s1, s2) {\r\n ret" +
行 162: "urn this.replace(new RegExp(s1, \"gm\"), s2);\r\n };\r\n function tishi(" +
行 163: "tishi) {\r\n //$(\"#tishi\").html(\"<b style=\'line-height:50px;padding-lef" +
行 164: "t:20px;\'>\" + tishi + \"</b>\").height(50);\r\n $(\"#tishi\").html(\"<div cla" +
行 165: "ss=\\\"copylink pb45\\\"><i class=\\\"copylink_icon\\\"></i><p>\" + tishi + \"</p></div>\")" +
行 166: ";\r\n $(\"#tishi\").thzBlock({\r\n autoCenterX: true,\r\n " +
行 167: " autoCenterY: true,\r\n closetxt: \"确定\",\r\n " +
行 168: "showtitle: false,\r\n showok: false,\r\n showclose: fa" +
行 169: "lse,\r\n width: 400,\r\n onoking: function () {\r\n " +
行 170: " $(\"#tishi form\").submit();\r\n return false;\r\n " +
行 171: " },\r\n onclosed: function () { $(\"#tishi\").html(\"load" +
行 172: "ing...\"); }\r\n });\r\n setTimeout(\"$(\\\"#thzBlockRoot\\\").fadeO" +
行 173: "ut(1000)\", 2000);\r\n }\r\n $(function () {\r\n $(\"#ddlAlbumL" +
行 174: "ist\").click(function (ev) {\r\n $(\".drop_down\").toggle();\r\n " +
行 175: " ev.stopPropagation();\r\n $(window).click(function () {\r\n " +
行 176: " $(\".drop_down\").hide();\r\n });\r\n });\r" +
行 177: "\n });\r\n </script>\r\n");
行 178:
行 179:
行 180: });
行 181:
行 182: WriteLiteral(@"
行 183: <div class=""mt20"" id=""VideoDetail"">
行 184: <div class=""pic_title"" style=""margin-top:0;"">
行 185: <div class=""title_2"">
行 186: <div class=""pic_ablum"">
行 187: <a href=""javascript:;"" class=""active"" id=""ddlAlbumList""><i></i></a>
行 188: <div id=""AlbumID"">
行 189: ");
行 190:
行 191:
行 192:
行 193: #line 137 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 194:
行 195:
行 196:
行 197: #line default
行 198: #line hidden
行 199:
行 200: #line 138 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 201: Write(Ajax.RenderAction("AlbumID", "ViedoTypePartial", "Video", new { ownID = @ViewBag.OwnID, type = userType }, new AjaxOptions { LoadingElementId = "ajaxloading" }, new { }));
行 202:
行 203:
行 204: #line default
行 205: #line hidden
行 206:
行 207: #line 138 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 208: ;
行 209:
行 210:
行 211:
行 212: #line default
行 213: #line hidden
行 214: WriteLiteral(" \r\n </div>\r\n\r\n </div>\r\n <" +
行 215: "span>");
行 216:
行 217:
行 218:
行 219: #line 144 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 220: Write(Model.VideoTypeName);
行 221:
行 222:
行 223: #line default
行 224: #line hidden
行 225: WriteLiteral("</span>\r\n </div>\r\n <a href=\"javascript:;\" id=\"copyTypeUrl\" class=\"c" +
行 226: "opy_link\" href=\"\">复制链接</a>\r\n ");
行 227:
行 228:
行 229:
行 230: WriteLiteral("\r\n <a href=\"javascript:void(0)\" class=\"copy_link\" onclick=\"showShare(");
行 231:
行 232:
行 233:
行 234: #line 148 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 235: Write(AuthManagers<THZUserLogin>.IsLog() ? AuthManagers<THZUserLogin>.GetNowUser().Id : 0);
行 236:
行 237:
行 238: #line default
行 239: #line hidden
行 240: WriteLiteral(", ");
行 241:
行 242:
行 243:
行 244: #line 148 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 245: Write(Model.Id);
行 246:
行 247:
行 248: #line default
行 249: #line hidden
行 250: WriteLiteral(", \'");
行 251:
行 252:
行 253:
行 254: #line 148 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 255: Write(ViewBag.type == UserType.Company ? "CompanyVideo" : "UserVideo");
行 256:
行 257:
行 258: #line default
行 259: #line hidden
行 260: WriteLiteral("\')\">分享视频</a>\r\n </div>\r\n <div class=\"pic_share clear\">\r\n <div class=\"" +
行 261: "pic_share_list_warp\">\r\n\r\n");
行 262:
行 263:
行 264:
行 265: #line 153 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 266: if (ViewBag.Upload)
行 267: {
行 268:
行 269:
行 270: #line default
行 271: #line hidden
行 272: WriteLiteral(" <div class=\"pic_share_operat\">\r\n");
行 273:
行 274:
行 275:
行 276: #line 156 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 277:
行 278: Html.RenderPartial("VideoInfoManageTool");
行 279:
行 280:
行 281:
行 282: #line default
行 283: #line hidden
行 284: WriteLiteral(" </div>\r\n");
行 285:
行 286:
行 287:
行 288: #line 160 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 289: }
行 290:
行 291:
行 292: #line default
行 293: #line hidden
行 294: WriteLiteral("\r\n <ul class=\"pic_share_list\">\r\n <li>\r\n");
行 295:
行 296:
行 297:
行 298: #line 164 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 299: if (string.IsNullOrEmpty(Model.VideoUrl))
行 300: {
行 301:
行 302:
行 303: #line default
行 304: #line hidden
行 305: WriteLiteral(" <div class=\"playTips\">\r\n ");
行 306:
行 307:
行 308:
行 309: WriteLiteral("\r\n <i class=\"icon_annt\"></i>\r\n " +
行 310: " <span>视频尚未通过审核,暂时不能播放</span>\r\n </div>\r\n");
行 311:
行 312:
行 313:
行 314: #line 171 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 315: }
行 316: else
行 317: {
行 318: if (Model.VideoUrl.Contains("coowhy.com"))
行 319: {
行 320: var movieUrl = "xxx," + Model.VideoUrl;
行 321: movieUrl = movieUrl.VideoEncrypt();
行 322:
行 323:
行 324: #line default
行 325: #line hidden
行 326:
行 327:
行 328: #line 189 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 329:
行 330:
行 331:
行 332: #line default
行 333: #line hidden
行 334: WriteLiteral(@" <object id=""flvplayer"" codebase=""http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"" width=""100%"" height=""100%"" style=""align-content:center;"">
行 335: <param name=""movie"" value=""/Scripts/flvPlayerAS3.swf?movieurl=");
行 336:
行 337:
行 338:
行 339: #line 191 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 340: Write(movieUrl);
行 341:
行 342:
行 343: #line default
行 344: #line hidden
行 345: WriteLiteral(@""" />
行 346: <param name=""quality"" value=""high"" />
行 347: <param name=""menu"" value=""true"" />
行 348: <param name=""SCALE"" value=""exactfit"" />
行 349: <param name=""allowFullScreen"" value=""true"" />
行 350: <param value=""always"" name=""allowscriptaccess"" />
行 351: <param name=""saling"" value=""r"" />
行 352: <embed src=""/Scripts/flvPlayerAS3.swf?movieurl=");
行 353:
行 354:
行 355:
行 356: #line 198 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 357: Write(movieUrl);
行 358:
行 359:
行 360: #line default
行 361: #line hidden
行 362: WriteLiteral(@"""
行 363: quality=""high"" name=""flvplayer"" wmode=""opaque"" pluginspage=""http://www.macromedia.com/go/getflashplayer""
行 364: allowfullscreen=""true"" type=""application/x-shockwave-flash"" width=""100%"" height=""100%""></embed>
行 365: </object>
行 366: ");
行 367:
行 368:
行 369:
行 370: #line 202 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 371: }
行 372: else
行 373: {
行 374: var movieUrl = Model.VideoUrl;
行 375: movieUrl = movieUrl.StartsWith("http://") ? movieUrl : "http://" + movieUrl;
行 376:
行 377:
行 378:
行 379: #line default
行 380: #line hidden
行 381: WriteLiteral(" <embed src=\"");
行 382:
行 383:
行 384:
行 385: #line 208 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 386: Write(movieUrl);
行 387:
行 388:
行 389: #line default
行 390: #line hidden
行 391: WriteLiteral("\" height=\"100%\" width=\"100%\" autostart=\"true\" allowfullscreen=\"true\" />\r\n");
行 392:
行 393:
行 394:
行 395: #line 209 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 396:
行 397: }
行 398: }
行 399:
行 400:
行 401: #line default
行 402: #line hidden
行 403: WriteLiteral(" </li>\r\n </ul>\r\n </div>\r\n\r\n <div class=\"p" +
行 404: "ic_lub_title\">\r\n <div class=\"pic_lub_page\"></div>\r\n <div c" +
行 405: "lass=\"pic_title_con\">\r\n <div class=\"pic_title_detail\" id=\"photoTi" +
行 406: "tle\">");
行 407:
行 408:
行 409:
行 410: #line 219 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 411: Write(Model.VideoDescription);
行 412:
行 413:
行 414: #line default
行 415: #line hidden
行 416:
行 417:
行 418: #line 219 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 419: WriteLiteral("</div>\r\n\r\n <div class=\"pic_title_date\">\r\n <span" +
行 420: ">");
行 421:
行 422:
行 423: #line default
行 424: #line hidden
行 425:
行 426: #line 222 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 427:
行 428:
行 429: #line default
行 430: #line hidden
行 431:
行 432: #line 222 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 433: Write(Model.EditorTime.ToString("yyyy.MM.dd"));
行 434:
行 435:
行 436: #line default
行 437: #line hidden
行 438:
行 439: #line 222 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 440:
行 441:
行 442: #line default
行 443: #line hidden
行 444: WriteLiteral("</span>\r\n \r\n </div>\r\n\r\n\r\n </div>\r\n " +
行 445: " </div>\r\n </div>\r\n <div class=\"ge20\"></div>\r\n");
行 446:
行 447:
行 448:
行 449: #line 231 "D:\web\THZServer\views\Video\VideoDetail.cshtml"
行 450:
行 451: CommentMessageType messageType = CommentMessageType.VideoComment;
行 452: switch (userType)
行 453: {
行 454: case UserType.User:
行 455: messageType = CommentMessageType.VideoComment;
行 456: break;
行 457: case UserType.Company:
行 458: messageType = CommentMessageType.VideoCompanyComment;
行 459: break;
行 460: }
行 461: Html.RenderAction("VideoCommentMessageViewPage", "Comment", new { reciverID = Model.Id, authorID = Model.CreatorId, width = 730, commentMessageType = messageType });
行 462:
行 463:
行 464:
行 465: #line default
行 466: #line hidden
行 467: WriteLiteral("</div>\r\n");
行 468:
行 469:
行 470:
行 471: WriteLiteral("\r\n<div id=\"tishi\" class=\"\" style=\"display:none;\"></div>\r\n");
行 472:
行 473:
行 474: }
行 475: }
行 476: }
行 477:
|